- ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Install nodejs npm utility:
- brew install nodejs
Install cordova:
- npm install -g cordova
Create a hello world project:
- cordova create hello com.example.hello HelloWorld
cd into project root dir where config.xml is located:
- cd hello
Add ios platform specific libraries.Run:
- cordova platform add ios
Check add platforms by running:
You should see something like this:
Installed platforms: ios 3.5.0
Available platforms: amazon-fireos, blackberry10, firefoxos, ubuntu
Install iphone emulator:
- cordova platforms ls
You should see something like this:
Installed platforms: ios 3.5.0
Available platforms: amazon-fireos, blackberry10, firefoxos, ubuntu
Install iphone emulator:
- npm install -g ios-sim
Build helloworld project:
- cordova build
No comments:
Post a Comment