Setup Cordova on Mac
Install Command Line Tools for Xcode
- Open
Software Update - On
Additional downloadssection, find an options to download/installCommand Line Tools for Xcode
After the installation is complete, try to run:
xcodebuild -version
If you encounter an error:
- Open
Xcode>Settings - Open
Locationstab - Re-select your Xcode version on
Command Line Toolsfield
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