A USB-C cable, without that, you can't connect your Apple TV with computer

1.3 Converting deb into ipa

Before beginning the installation, you have to convert .deb file of Kodi into .ipa. That is because Cydia Impactor only accepts .ipa files and not .deb files. If you already know how to convert .deb into .ipa, you can skip to the installation below.

Step 3: Now you should have data folder and data.tar file in the folder.

Step 4: Go inside the data folder and open Applications folder. Here you will find a folder named Kodi.app.

Step 5: Here create a new folder and name it “Payload” without quotes. Now you should have 2 folders. Payload and Kodi.app folder. Make sure that the P is capital in Payload.

Step 6: Now simply drag the Kodi.app folder and drop it on top of the Payload folder. In other words, copy kodi.app and paste it inside Payload folder.

Step 7: Next you have to Right-click the Payload folder and Click 7-zip > Add to archive option.

Step 8: A new window will pop up. Here you have to make sure that the Archive format is set to zip and name the archive ending with .ipa . Something like Kodi.ipa. After that click OK. Now you should have your kodi.ipa file ready for installation.

(optional) A USB-C cable if you have the Apple TV 4 (but just like the Apple TV 4K, the Apple TV 4 can also communicates wirelessly)

2.2 Connect your device

If you have an Apple TV 4 and a USB-C cable you can power on your device and plug in with your Mac.
Else if you have an Apple TV 4K or an Apple TV 4 without a USB-C cable you will need to pair your device wirelessly with Xcode.
You can follow the step-by-step guide below.

Step 1: On your Apple TV open "Settings".

Step 2: Open "Remotes and Devices".

Step 3: Open "Remote App and Devices".

Step 4: Now keep your Apple TV at this screen and take your Mac.

Step 5: Launch Xcode and then navigate to "Window" --> "Devices and Simulators" from the menu bar on top.

Step 6: Select your Apple TV on the left panel and click "Pair"

Step 7: Fill the verification code that appear on your Apple TV screen and click on "Connect". Your device is now paired with Xcode!

2.3 Connect your Apple account in Xcode

Follow the step-by-step guide below in order to connect your iCloud/Apple account in Xcode.

Step 1: Launch Xcode and open "Preferences" from the menu bar on top.

Step 2: Open the "Accounts" tab and add an account with the "+" button.

Step 3: Choose "Apple ID" then click "Continue".

Step 4: Fill in your Apple account credentials then click "Next".

Step 5: Now your Apple account is linked with Xcode!

2.4 Generate Kodi IPA file from deb file

If you have a free Apple developper account (this is usually the case if you are a "lambda" user) please follow the section FREE Apple dev account, else if you have a paid developper account (99$/year) please follow the PAID Apple dev account section

2.4.1 (option A) FREE Apple dev account

Follow the step-by-step guide below in order to (i) obtain a valid signing certificate and provisioning profile for your Kodi app and (ii) pack and sign Kodi .deb file in an .ipa file

Step 1: Open Xcode and click on "Create a new Xcode project"

Step 2: Choose "tvOS" and "Single View App" then click on "Next"

Step 3: Fill the "Product Name" with "kodi", choose your Apple account name for the team, choose your name for the "Organization Name" and "com.yourusername" (without any space) for your "Organization identifier". Then click on "Next".

Step 4: Finally choose a location for the Xcode project then click on "Create".

Step 5: Your Xcode project is now alive, open the devices list by clicking on the target device on the top left.

Step 6: Choose your your "real" connected Apple TV. Also, check for a "Fix issue" button on the signing panel, if this button is present click on it. Now you can close your Xcode window.

Step 7: Now open iOS App Signer, click on "Browse" and choose the Kodi DEB file, select the signing certificate corresponding to your Apple account, select the provisioning profile corresponding to the organization identifier that you have previously chosen, then click on "Start".

Step 8: Click on "Save" and wait until the Kodi IPA file appears in the same folder as the DEB file.

2.4.2 (option B) PAID Apple dev account

WIP

2.5 Install Kodi on your Apple TV

Finally you have to install your freshly created IPA file to your device. to do that follow the step-by-step guide below.

Step 1: Start your Apple TV and stay on the main menu screen. Launch Xcode and then navigate to "Window" --> "Devices and Simulators" from the menu bar on top.

Step 2: Select your device on the left panel and click on the "+" button.