简体   繁体   中英

Resign iOS App (ipa) for distribution

I've successfully resigned my app. However there are still some open questions. These are the steps i did to resign the app:

  1. I downloaded the appropriate provision profile from the apple member center.
  2. I unzipped the ipa file: unzip {AppName}.ipa
  3. Removed the old signature: rm -rf Payload/{AppName}.app/_CodeSignature/
  4. Copied the new provisioning profile into the App: cp new.mobileprovision Payload/{AppName}.app/embedded.mobileprovision
  5. Resign the App: codesign -f -s "iPhone Distribution: {CertificateName}" --entitlements Entitlements.plist Payload/{AppName}.app/
  6. Repack the App: zip -qr resigned.ipa Payload

I've looked up the {CertificateName} from the my Keychain under My Certificates . To get the entitlements.plist i used the following command:

codesign -d --entitlements :entitlements.plist Payload/{AppName}.app/

Now the open questions are:

Can i use this to resign an app and upload it to the app store? Is there anyone who actually did it this way successfully?

I have another folder besides Payload which is called Symbols. I suspect that this was added when the ipa was created for the app store. Do i need to repack it this way then: zip -qr resigned.ipa Payload Symbols to ensure that the Symbols are also within the app?

Within the Entitlements there is a part keychain-access-groups . Is this only relevant if i would use the keychain? Can i use the following value for it: {Prefix}.* or should it be more explicit?

Thank you in advance for any help!

看看这个,在您上传应用程序FastLane时为您完成了大部分工作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM