Published on

Resign IPAs with Fastlane for Jailbreak

Authors
  • avatar
    Name
    Tong
    Twitter

Jailbreak tools

Undecimus: unc0ver jailbreak for iOS 11.0 - 12.1.2

Electra: iOS 11.0 – 11.4.1 and tvOS 11.0 - 11.4.1

You are NOT able to install these apps directly. Because IPA files are not signed with a certificate.

In this tutorial. I will show you how to resign IPAs with fastlane.

What you need to resign an IPA

  • Mac
  • iOS or tvOS device you want to jailbreak
  • $99 Apple Developer account

Add Devices

Install Xcode from Mac App Store.

Open Xcode -> Window -> Devices and Simulators (Shift + Command + 2)

Add devices you want to jailbreak.

Add-Devices.png

Create Certificate

Log in your Apple Developer account.

We are going to create a Certificate, an Identifier, and a Profile.

Certificates-Identifiers-Profiles.png

Create a New Certificate. Select Apple Distribution.

Create-Apple-Distribution-Certificate.png

Register App ID

Register a new App ID.

Register-App-ID.png

Fill description with Undecimus. Fill Bundle ID with a reverse-domain name style string (i.e., com.example.undecimus).

Regieter-App-ID-Fill.png

Create Provisioning Profile

Create a new Provisioning Profile.

Create-Provisioning-Profile.png

On the next page. Select the App ID you just created.

Provisioning-Profile-Select.png

Select the certificate you created before.

Select-Certificate.png

Select devices you wish to include. (Ad Hoc apps can only be installed on a limited number of registered devices)

Select-Devices.png

Enter a Provisioning Profile Name and click Generate.

Name-Provisioning-Profile.png

Download the Provisioning Profile (Undecimus_Ad_Hoc.mobileprovision). We'll use it later.

Download IPA

Open Undecimus releases page. Download the latest .ipa file.

Undecimus-Download-IPA.png

Resign IPA

Install fastlane (see setup doc)

sudo gem install fastlane -NV

Resign IPA with command

fastlane run resign ipa:"Undecimus-v3.2.1.ipa" provisioning_profile:"Undecimus_Ad_Hoc.mobileprovision"

You can also use Fastfile. See my gist to learn more about Fastfile.

Install IPA

Install Apple Configurator 2

Select device. Drag & drop IPA.

Undecimus-Screenshot.png

The app expiry date is the same as your certificate. Which is up to one year.

View on GitHubThis article is licensed under a CC BY-SA 4.0 license.