How to re-sign an .ipa file.

book

Article ID: 178554

calendar_today

Updated On:

Products

Mobile Management

Issue/Introduction

 

Resolution

Run the following command from the OSX Terminal:

./iparesign.sh appname.ipa "iPhone Distribution: Developer Name" -p mobileprovisioningprofilename.mobileprovision newappname.ipa

This command will re-sign an application and use the original embedded profile's appid by default. The other available commands are listed below:

'usage: $0 source identity -p provisioning [-e entitlements] [-d displayName] -b bundleId outputIpa'

The following command may need to be run on the 'iparesign.sh' file in order to run it:

chmod +x iparesign.sh


Alternatively, the attached 'resign_appid.sh.zip' and 'resign.sh.zip' scripts can also be used for resigning purposes.

The resign_appid.sh script uses the appid that is in the embedded.mobileprovision of the app being resigned.

The resign.sh script uses the appid that is in the .mobileprovision profile being used to resign the app.

After it has been uncompressed the following command will need to be used to re-sign the application using the OSX Terminal:

./resign_appid.sh --ipa yourIPA.ipa --profile YourProvisioningProfile --identity "iPhone Distribution: Developer Name (xxxxxxxxxx)" --out yourNewResignedIPA.ipa

OR

./resign.sh --ipa yourIPA.ipa --profile YourProvisioningProfile --identity "iPhone Distribution: Developer Name (xxxxxxxxxx)" --out yourNewResignedIPA.ipa

Attachments

resign_appid.sh.zip get_app
resign.zip get_app
iparesign.sh get_app