As an addition to @
dmytrokoren 's earlier compiling and Xcode instructions - thx. mate. I will add some additions to make life a bit easier:
(I used Xcode v9.2 and @
Memphiz 's yab Kodi 17.6 Github branch)
2. Install Kodi build depends:
Add --with-sdk=11.2 such as:
Code:
cd $HOME/Kodi
cd tools/depends
./bootstrap
./configure --host=arm-apple-darwin --with-cpu=arm64 --with-platform=tvos --with-sdk=11.2
make -j$(getconf _NPROCESSORS_ONLN)
5. Adjust Settings in Xcode
Navigate to Kodi folder using macOS Finder and double click to open Kodi.xcodeproj in Xcode
Now from Top Left to Right, select:
Kodi-TVOS > Apple TV
two lines below that select Kodi-TVOS
Identity > Display name = Kodi
Identity > Bundle Identifier = your username you use in the Signing Window > Team box below
Signing > Tick Automatically manage signing and use an iPhone Developer Certificate
Signing > [Your username attached to your AppleID] (Personal Team) - there should only be one most times anyway.
Deployment Info > Deployment Target > 11.2
Linked Frameworks and Libraries > add AVKit.framework
Xcode Top Menu Bar: Product > Clean
Xcode Top menu Bar: Product > Build
Results:
Frame Rate matching and HDR > SDR conversion works.
H264 1080 25i deinterlacing is only Half Motion and produces video combing. Hardware decoding needs to be disabled for this combo so full motion Deinterlace (YADIF2x) can work. The A10X Fusion can easily handle this, it has the CPU ponies !
Needs some patching.
The TVOSTopshelf Xcode option will not compile unless you have a full blown developer paid up account.
EDIT: The A10X Fusion SoC in the Apple TV 4K is a bit of a beast - you can simply turn off all hardware acceleration and playback 1080p content - even 10bit 1080p HEVC. It has a 6 core CPU clocked at 2.39GHz