Overview
This is an app for OS X that can (re)sign apps and bundle them into ipa files that are ready to be installed on an iOS device.
Supported input types are: ipadebappxcarchive
Video
How to install Kodi on an Apple TV 4 with working top shelf
Prerequisites
To sign the applicationyou’re going to need Mac OS X 10.9 or newer and Xcode 7 or newer.
In order to install the signed application to your device you’re going to need a cable.
For the Apple TV 4you’ll need either a USB-A to USB-C cable or a USB-C to USB-C cable.
For iOS devicesyou’ll need your standard sync cable.
Usage
If you have a paid developer account or a signing certificate and provisioning profileyou can skip to step 7 and just use your signing certificate and the profile.
-
Open Xcode and create a new iOS or tvOS application depending on your device type

-
Type in a name and identifier (choose something uniquesomething like com.yourname.kodi)

-
Xcode will complain about the provisioning profileclick fix issue

-
Xcode may have you sign into an Apple IDclick Add…

-
Then you’ll see something like thisselect your ID and click Choose

If you have additional devices
- Plug in the device
- Go to the Product Menu
- Under Destinationselect your device
- Repeat from step 3
-
Xcode should no longer be complaining

-
Open App Signerselect the debyour signing certificateand the provisioning profile

-
Click start and select an output filename
-
To install the app onto your device go back into Xcodeselect the Window menu and then click devices

Then click the + and select the file generated by iOS App Signer
Thanks To
maciekish / iReSign: The basic process was gleaned from the source code of this project.