Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 483
Aarush Avatar asked Oct 28 '13 07:10

Aarush


People also ask

How do I run a Cordova project in Xcode?

Table of Contents Getting Started Pre-requisites Steps : Create New SPRING MVC Project Add Required Dependecies Servlet Configuration Add Required Bean Classes Create Model,DAO,Service,Controller Packages Create Model Class Create DAO Class Create Service Class Create Controller Class Create a JSP page Run On Server ...


1 Answers

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": "******"
   }
 }
like image 152
Zhongyuan Zhou Avatar answered Nov 25 '22 11:11

Zhongyuan Zhou