文章目录
  1. 1. Generate Production/Distribution Certificates
  2. 2. Generate Distribution Provision Profile
  3. 3. Resign iOS App

As may we know, we can distribute apps with enterprise account to any devices without add the device id into device list. This is very useful when the developers are not in the same offices or a multi-people project. So how to do that?

Generate Production/Distribution Certificates

  1. login the iOS dev center with your enterprise account, and click “Certificates, Identifiers & Profiles”.

  2. Enter “Certificates” page and and select “Production”.

  3. Create a production(or distribution) certificate.(Add button on the top right of panel). Following creating instructions one by one. During this step, you should note you have to generate a Certificate Signing Request from Keychain Access and them uploading it.(Here you can learn how to obtain a CSR how to obtain CSR

  4. Ok, you can download the the certificates if the third step successes.

  5. Double click the certificate, and then you can find this certificate in Keychain Access.

Generate Distribution Provision Profile

  1. Changed to the “Provisioning Profiles” item and click “Distribution”.

  2. Select and Click “Add” button on the top right of panel.

  3. Following instructions one by one, “In-House” Provision Profiles and right “Production/Distribution Certificate” that you create before.

  4. Success, and download it.

  5. Double click to add it to x-code.

OK, you have finish the preparation. and next you can resign the iOS app.

Resign iOS App

Before execute the following commands in your Terminal tool one by one., please make the .ipa file, .mobileprovision file in the same folder. for example, put all file in “~/Downloads” folder.

rm -rf Payload
unzip YourApp.ipa
rm -r Payload/YourApp.app/_CodeSignature Payload/YourApp.app/CodeResources
cp ~/Downloads/YourApp.mobileprovision Payload/YourApp.app/embedded.mobileprovision

codesign -f -s "iPhone Distribution: xxxx" --resource-rules 
"Payload/YourApp.app/ResourceRules.plist" Payload/YourApp.app

zip -qr "YourApp.resigned.ipa" Payload
rm -rf Payload

If there is not any error, you are successful. Please install the app to you iOS device and test it.

文章目录
  1. 1. Generate Production/Distribution Certificates
  2. 2. Generate Distribution Provision Profile
  3. 3. Resign iOS App