Skip to content

Setup Cordova on Mac

Install Command Line Tools for Xcode

  1. Open Software Update
  2. On Additional downloads section, find an options to download/install Command Line Tools for Xcode

After the installation is complete, try to run:
xcodebuild -version

If you encounter an error:

  1. Open Xcode > Settings
  2. Open Locations tab
  3. Re-select your Xcode version on Command Line Tools field

Generating a build

To build for debuging on emulator:

Example
cordova emulate ios

To build for release (device required):

Example
Please use Xcode > Product > Archive

References