If you are using cordova ios 3.9.0 or later, you can use this command to create .ipa directly from the CLI without additional commands:
cordova build ios --device --release
You will need the build.json file in the root directory of your project
{ "ios": { "debug": { "codeSignIdentity": "iPhone Developer", "provisioningProfile": "your-dev-provisioning-profile-UUID-here" }, "release": { "codeSignIdentity": "iPhone Distribution", "provisioningProfile": "your-distribution-provisioning-profile-UUID-here" } } }
To get the UUID, I open the .mobileprovision file in a text editor and look for the 'UUID', not sure if there is an easier way to find it.
If, with Xcode 8, build.json requires the developmentTeam and packageType , but no more provisioning profiles are required, codeSignIdentity must also be iPhone Developer for debugging and release:
{ "ios": { "debug": { "codeSignIdentity": "iPhone Developer", "developmentTeam": "FG35JLLMXX4A", "packageType": "development" }, "release": { "codeSignIdentity": "iPhone Developer", "developmentTeam": "FG35JLLMXX4A", "packageType": "app-store" } } }
http://cordova.apache.org/docs/en/6.x/guide/platforms/ios/index.html#using-buildjson
jcesarmobile Feb 04 '16 at 9:51 2016-02-04 09:51
source share