Resign an IPA file including frameworks

Run these commands from the terminal in the folder where you have YOUR_IPA.ipa file.

  1. unzip -q YOUR_IPA.ipa
  2. rm -rf Payload/YOUR_IPA.app/_CodeSignature
  3. rm -rf Payload/YOUR_IPA.app/Frameworks/X.framework/_CodeSignature
  4. codesign -f -s “iPhone Distribution: XXX (XXXX)” Payload/YOUR_IPA.app/Frameworks/X.framework
  5. security cms -D -i PRODUCTION.mobileprovision > pr.plist
  6. /usr/libexec/PlistBuddy -x -c ‘Print :Entitlements’ pr.plist > YOUR_Plist.plist
  7. codesign -f -s “iPhone Distribution: XXX (XXXX)” –entitlements YOUR_Plist.plist Payload/YOUR_IPA.app
  8. zip -qr ResignedApp.ipa Payload SwiftSupport Symbols

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s