- MacOS
- ruby 3.2+
- bundler
- Apple Certificate installed in
Keychain Accessapp
Original tvOS .ipa file taken from official telegram chat.
shasum -a 256 ./tvos/micro_tvOS-25_11.2023.ipashould produce 0f91b1830684f28125b9bc4b2296fcf48f3d6cd5ffb5746e954822ff0c96e16d hash.
bundle install- Call from the repo root directory. Must use an absolute file path.
bundle exec fastlane resign_ipa_tvos provision:/Users/$USER/Downloads/embedded.mobileprovision- If you know what identity needed, you can pass it explicitly (or the script will search it through found certificates):
bundle exec fastlane resign_ipa_tvos identity:5EBCD74500DBE201A18629CDCE743303F47D0941 provision:/Users/$USER/Downloads/embedded.mobileprovisionOn success, the result can be found at ./fastlane/resign/micro_tvOS-25_11.2023.ipa
- It takes original Kinopub tvos .ipa file (./tvos/micro_tvOS-25_11.2023.ipa)
- Unpacks it
- Takes bundle id from your provided
mobileprovisionfile and replaces Kinopub's one - Removes from Kinopub's application
Pluginsdirectory as not required - Repacks it back to .ipa
- Uses
fastlane resigntool (https://docs.fastlane.tools/actions/resign/) to resign .ipa file by providedmobileprovision
- Unpack generated ./fastlane/resign/micro_tvOS-25_11.2023.ipa (change .ipa extension to .zip and unzip it)
- Find there
./fastlane/resign/Payload/Kinopub.appdirectory - Open Xcode → Window → Devices and Simulators
- In the Devices section find your Apple TV
- Click
Add installed appplus button - Select there
./fastlane/resign/Payload/Kinopub.appdirectory
Install an app bundle directly to a device using ideviceinstaller from libimobiledevice
# find connected Apple TV
idevice_id # 00008000-001A048C3A712345
# install an app to a device
ideviceinstaller --udid 00008000-001A048C3A712345 --install ~/Downloads/kinopub_app_resign/fastlane/resign/Payload/Kinopub.app- For this kind of distribution, you can install the app using .ipa file, send it to the device via AirDrop
- Open Xcode
- LogIn in Xcode using your Apple ID (Preferences → Accounts)
- Create a new project
- File → New → Project
- Select there tvOS tab
- Select App
- Type your app bundle id
- Select your developer team
- Be sure the device destination is set as your real paired Apple TV that Xcode is able to add its UUID to .mobileprovision file as you can use .mobileprovision with unknown device UUID.
- Build project (Product → Build)
- Go to the build project directory (Product → Show Build Folder in Finder)
- Find there in Products/Debug-appletvos/your-app-name.app/embedded.mobileprovision file
shasum -a 256 ./ios/Cinepub_2.33-23042026.ipa # 073308d32d7fc26ba6eab83f0db19014eca0c4615d42213f3a0d6303adba9564bundle exec fastlane resign_ipa_ios provision:/Users/$USER/Downloads/embedded.mobileprovision- With identity
bundle exec fastlane resign_ipa_ios identity:5EBCD74500DBE201A18629CDCE743303F47D0941 provision:/Users/$USER/Downloads/embedded.mobileprovisionOn success, the result can be found at ./fastlane/resign/Cinepub_2.33-23042026.zip
- It takes the original Kinopub iOS.ipa file (./ios/Cinepub_2.33-23042026.ipa)
- Unpacks it
- Takes bundle id from your provided
mobileprovisionfile and replaces Kinopub's one - Removes from Kinopub's application
Pluginsdirectory as not required - Repacks it back to .ipa
- Uses
fastlane resigntool (https://docs.fastlane.tools/actions/resign/) to resign .ipa file by providedmobileprovision
- Unpack generated ./fastlane/resign/Cinepub_2.33-23042026.ipa (change .ipa extension to .zip and unzip it)
- Find there
./fastlane/resign/Payload/Cinepub.appdirectory - Open Xcode → Window → Devices and Simulators
- In the Devices section find your Apple TV
- Click
Add installed appplus button - Select there
./fastlane/resign/Payload/Cinepub.appdirectory
Install an app bundle directly to a device using ideviceinstaller from libimobiledevice
- For this kind of distribution, you can install the app using .ipa file, send it to the device via AirDrop
# find connected iPhone
idevice_id # 00008000-001A048C3A712345
# install an app to a device
ideviceinstaller --udid 00008000-001A048C3A712345 --install ~/Downloads/kinopub_app_resign/fastlane/resign/Payload/Cinepub.appTo fix this, go to Settings → General → VPN & Device Management → Developer App and click on the 'Trust $ {email}' button.
The same way as for Kinopub tvOS, except use iOS Xcode App template and select there your real iOS device




