Finally got KODI working on apple tv 4.
Used
https://www.kodiinfopark.com/install-kodi-on-apple-tv/
http://www.geekcosmos.com/how-to-convert-deb-file-ipa-app-sideloading-ios/
Follow the guide using impactor to sideload kodi and it works like a sharm.
If you get the wrong password error when prompted for password, you have to log in to your apple account and make a temporary password for the app because you use two step authentication.
Here's a quick "guide" so you understand the installation process..
To make the .ipa file follow the guide above,
in short,, download kodi deb file for apple tv, extract with unarchiver and extract the mentioned file and add it to a folder named Payload, make zipfile and rename file extension to .ipa ( where the file is? use google =)
Save the file for use later on.
Drag the .ipa file to the impactor app to start sideload it..
Works for 7 days but i think you can just sideload it again after 7 days and update it for 7 new days without the need of entering the settings and plugins again.
This method you dont need to manage and play around with xcode and such..