View Sidebar
Creating Cordova/Phonegap iOS app using CLI commands

Creating Cordova/Phonegap iOS app using CLI commands

April 30, 2015 12:38

Creating Cordova/Phonegap iOS app using CLI commands

  1. Open “Terminal Window”
  2. Navigate to folder where you want to create the project
  3. Following are the commands to create an iOS project
    1. $ cordova create “ProjectName” com.example.project “ProjectName”
    2. $ cd ProjectName
    3. $ cordova platform add ios
    4. $ cordova prepare
  4. Navigate to path “ProjectName/platforms/ios/www” and copy your project source code.
  5. Run ProjectName.xcodeproj from the “ProjectName/platforms/ios/” to open Xcode and build the application.
If you like the article please share

Leave a reply

You must be logged in to post a comment.