Step 2: Connect your Apple TV to your Mac using a USB Type-C cable.
Step 3: Launch Xcode → click Create a new Xcode Project → select Application under tvOS → Single View Application, and click Next.
Step 4: In the Product name field, insert a unique name like KodiApplewhatevernameyouwant and click Next → Create
Step 5: Under the Team drop down box, select your personal team, and click the Fix Issue button to resolve provisioning issues. You will need to ensure that you are signed into Xcode with a free Apple developer account.
Step 6: Ensure that your Apple TV is selected in the destination menu at the top of the screen. You can also click Product → Destination, and select Apple TV.
Step 7: Minimize Xcode and open the iOS App Signer.
Step 8: Click Browse on the iOS App Signer and select the Kodi.deb nightly file from the desktop.
Step 9: Select your Apple ID in the iOS App Signer’s Signing Certificate box.
Step 10: Select the Project name/bundle identifier you just created in Xcode in iOS App Signer’s Provisioning Profile box.
Step 11: Click Start in the bottom right-hand corner of the iOS App Signer, and the .IPA file for Kodi will be built and saved to the desktop.
Step 12: Open Xcode → Window → Devices and select the Apple TV
Step 13: Click the ‘+’ sign and select the .IPA file from the desktop and click Open. Kodi will now be deployed to your Apple TV
Step 14: Once finished, you should see the Kodi app on your Apple TV’s Home screen.