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
login the iOS dev center with your enterprise account, and click “Certificates, Identifiers & Profiles”.
Enter “Certificates” page and and select “Production”.
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
Ok, you can download the the certificates if the third step successes.
Double click the certificate, and then you can find this certificate in Keychain Access.
Generate Distribution Provision Profile
Changed to the “Provisioning Profiles” item and click “Distribution”.
Select and Click “Add” button on the top right of panel.
Following instructions one by one, “In-House” Provision Profiles and right “Production/Distribution Certificate” that you create before.
Success, and download it.
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.