How to make release Build for iOS using Phonegap Command Line Tools ?

Aarush picture Aarush · Oct 28, 2013 · Viewed 7.8k times · Source

I want to make the Release Build for iOS platform with the Distribution Certificate & Mobile Provisioning Profile. I want to do this using Phonegap(Cordova) Command Line Tools where I don't want to open XCode.

I have mobile provisioning profile and distribution certificate. I have also installed XCode, NodeJS on my machine but I don't want to open the Xcode only generate iOS release build using cordova command line tools.

If it is possible then please help me.

Answer

Zhongyuan Zhou picture Zhongyuan Zhou · Nov 25, 2015
cordova build ios --device --release

you should have a file called build.json in cordova. In build.json, the content should like this

  "ios": {
    "debug": {
       "codeSignIdentitiy": "iPhone Development",
       "provisioningProfile": "*****"
    },
   "release": {
     "codeSignIdentitiy": "iPhone Distribution",
     "provisioningProfile": "******"
   }
 }