Skip to content

Instantly share code, notes, and snippets.

@smirn0v
Last active December 23, 2015 10:44
Show Gist options
  • Save smirn0v/6425865 to your computer and use it in GitHub Desktop.
Save smirn0v/6425865 to your computer and use it in GitHub Desktop.
Resign
1. extract old entitlements
codesign -d --entitlements :entitlements.plist Payload/PathToApp.app/
2. fix entitlements, or just copy from provisioning profile
3. copy new provprofile to Payload/PathToApp.app/embedded.mobileprovision
4. fix bundle id in info.plist
4.1 /usr/libexec/PlistBuddy Info.plist
4.2 set CFBundleIdentifier new.app.bundle.id.with.no.team.id
4.3 save
4.4 quit
5. force resign
codesign -f -s "iPhone Distribution: Mail.Ru LLC" Payload/AutoMailRu.app/ --entitlements entitlements.plist
6. xcrun -sdk iphoneos PackageApplication -v ./Payload/AutoMailRu.app -o /Users/smirnov/Auto.ipa --embed embedded.mobileprovision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment