- Overview
- Platform Support
- The Command-Line Interface
- Platform Guides
- Using Plugman to Manage Plugins
- The config.xml File
- Icons and Splash Screens
- Embedding WebViews
- Plugin Development Guide
- Privacy Guide
- Whitelist Guide
- Accelerometer
- Camera
- Capture
- Compass
- Connection
- Contacts
- Device
- Events
- File
- Geolocation
- Globalization
- InAppBrowser
- Media
- Notification
- Splashscreen
- Storage
iOS Command-line Tools
The cordova
command-line utility is a high-level tool that allows
you to build applications across several platforms at once. An older
version of the Cordova framework provides sets of command-line tools
specific to each platform. To use them as an alternative to the CLI,
you need to download this version of Cordova from
cordova.apache.org. The download contains
separate archives for each platform. Expand the platform you wish to
target. The tools described here are typically available in the
top-level bin
directory, otherwise consult the README file for
more detailed directions.
The iOS command-line tools are built upon shell scripts and rely on
Xcode command-line tools such as xcode-select
and xcodebuild
.
For information on the low-level command-line interface that enables plugins, see Using Plugman to Manage Plugins. See Application Plugins for an overview.
Create a Project
Run the create
command, specifying the existing path to the project,
the reverse-domain-style package identifier, and the app's display
name.
$ ./path/to/cordova-ios/bin/create /path/to/my_new_project com.example.project_name ProjectName
Build a Project
$ /path/to/my_new_project/cordova/build
Run App on an Emulator
$ /path/to/my_new_project/cordova/run
Releasing
$ /path/to/my_new_project/cordova/release
Logging
$ /path/to/my_new_project/cordova/log