DEV Community

Vero O
Vero O

Posted on

Cheatsheet: Build IOS ipa from Cordova command line.

This is a simple, tiny cheatsheet for building an ipa from cordova command line.

To upgrade your cordova IOS version:

npm update -g cordova
npm i cordova-osx

To create a new cordova project:

cordova create [folder_name] [app_id] [app_title]

To add platforms to the project:

cordova platform add ios@6.1.0
cordova platform add android

To manual add plugins:

cordova plugin add path/to/cordova-plugin-name

To get a plugin from git and then add it:

cd plugins
git clone https://github.com/PROJECT/cordova-plugin-name.git

To build:

cordova build ios
cordova build android

Once you've build it, you need to go to Xcode, to generate the IPA file:

  1. Open the workspace open ./platforms/ios/[app_title].xcworkspace/
  2. Inside the project preferences, set the sign keys for development and release
  3. Set the "device" to "Generic IOS device" to compile.
  4. Go to product > archive
  5. Done!

That's all folks!

Top comments (0)