Creating iOS app with Cordova

ref – https://cordova.apache.org/docs/en/4.0.0/guide/cli/

Install Cordova

Open up terminal:

Install the emulator

Creating the Cordova Project

arg1 (hello) – specifies a directory to be generated for your project. This directory should not already exist, Cordova will create it for you. Its www subdirectory houses your application’s home page, along with various resources under css, js, and img, which follow common web development file-naming conventions. These assets will be stored on the device’s local filesystem, not served remotely. The config.xml file contains important metadata needed to generate and distribute the application.

arg2 (com.example.hello) – provides your project with a reverse domain-style identifier.

arg3 (HelloWorld) – The third argument HelloWorld provides the application’s display title. This argument is optional. You can edit this value later in the config.xml file, but do be aware that there may be code generated outside of config.xml using this value, such as Java class names. The default value is HelloCordova, but it is recommended that you select an appropriate value.

Adding the iOS platform

This will create an ios folder in your Cordova’s platforms folder.

go into the ios folder, open the project in xCode, and run it.