O'Reilly logo

PhoneGap 4 Mobile Application Development Cookbook by Zainul Setyo Pamungkas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the command line to create a new iOS Cordova project

A streamlined workflow is something that can benefit us all greatly by speeding up our processes and reducing the amount of manual work needed to complete a task.

How to do it...

In this recipe, we will explore the command-line tools available in Cordova for creating and running iOS applications from the terminal application:

  1. Create a new Cordova iOS project by running the following command:
    cordova create hello com.example.hello HelloWorld
    
  2. Change the directory to the newly created project:
    cd hello
    
  3. Add the iOS platform to the project:
    cordova platform add ios
    
  4. Open the project directory in the explorer, and you should see something like this:
  5. Open the /platform/ios directory and double-click ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required