- MacOS
- ruby 3+
- bundler
- Apple Certificate installed in
Keychain Access
app
Original IPA file taken from official telegram chat.
shasum -a 256 ./tvos/micro_tvOS-25_11.2023.ipa
should produce 0f91b1830684f28125b9bc4b2296fcf48f3d6cd5ffb5746e954822ff0c96e16d
hash.
bundle config set --local path 'vendor/bundle'
bundle install
- Call from repo root directory. Must use full files paths.
bundle exec fastlane resign_ipa_tvos provision:/Users/my_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/my_user/Downloads/embedded.mobileprovision
If success then 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
mobileprovision
file and replaces Kinopub's one - Removes from Kinopub's application
Plugins
directory as not required - Repacks it back to .ipa
- Uses
fastlane resign
tool (https://docs.fastlane.tools/actions/resign/) to resign IPA file by providedmobileprovision
- Find paired to MacOS your Apple TV in
Apple Configurator
app (https://apps.apple.com/us/app/apple-configurator/id1037126344?mt=12) - Drag and Drop there resigned IPA file
- Done
- Unpack generated ipa (ipa it is just zip archive)
- Find there
****.app/
directory - Open Xcode -> Window -> Devices and Simulators
- In Devices section find your Apple TV
- Click
Add installed app
plus button - Select there
****.app/
directory
Here is my gist with full description how to pair Apple TV using Xcode https://gist.github.com/mikehouse/01ffe9ce1a5793406150f7b2fd15abbc
I didn't want to use appdb.io service to make the same thing.
- Open Xcode
- LogIn in Xcode using your Apple ID (Preferences -> Accounts)
- Create new project
- File -> New -> Project
- Select there tvos tab
- Select App
- Type your app bundle id
- Select your developer team
- Device destination is set as your real paired Apple TV that Xcode is able to add its UUID to .mobileprovision file
- 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/cncrt_iOS_1.87-02.12.2023.ipa # 9c77bc28b7bbba9a9de3744db92af1f3fbce791ef2644b5083848a713ce7d6aa
bundle exec fastlane resign_ipa_ios provision:/Users/my_user/Downloads/embedded.mobileprovision
There are two types of accounts for signing:
- Developer account (paid 100$ per year, a sign is valid for a year)
- Free account (a sign is valid for 7 days)
Also there are two types of app delivering to a device:
- *.ipa (zip archive for *.app) file (using App Configuration/Firebase/TestFlight)
- install *.app directly to a device from Terminal
For free account the only direct install of *.app available. Apple did it this way because you are allowed to install an app with free account only during development from Xcode. If you try to deliver an app via ipa
file you will get the error like:
The bundle being installed with bundle ID com.aaa.bbb is authorized by a free provisioning profile, but apps validated by those are not allowed to be installed from this source.
That is, if you have only free account, then after signing there are only two ways to install an app:
- Re-sign original ipa (ios/cncrt.ipa) using the project's script
- Unpack re-signed ipa to get an app bundle
- Install an app bundle directly to a device using set of libs from
libimobiledevice
# 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/cncrt.app
- Unpack generated ipa
- Find there
****.app/
directory - Open Xcode -> Window -> Devices and Simulators
- In Devices section find your iPhone
- Click
Add installed app
plus button - Select there
****.app/
directory
For a paid developer account just install the app using script created ipa file, delivering ipa to a device using App Configurator or AirDrop.