resign .ipa with new distribution certificate
Assumptions:
- ipa filename is app.ipa
- app is called MyApp
- new provisioning profile resides at: ~/Downloads/AdHoc.mobileprovision
- distribution certificate name is Company Certificate
- may not need resource-rules parameter
- provisioning profile is either for Adhoc, or Enterprise distribution Commands:
unzip app.ipa
rm -rf Payload/MyApp.app/_CodeSignature/
cp ~/Downloads/AdHoc.mobileprovision Payload/MyApp.app/embedded.mobileprovision
codesign -f -s "iPhone Distribution: Company Certificate" --resource-rules Payload/MyApp.app/ResourceRules.plist Payload/MyApp.app
zip -qr app-resigned.ipa Payload/
Written by LaverneBowen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Distribution certificate
Authors
Related Tags
#distribution certificate
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#