XCODE: https://developer.apple.com/xcode/downloads/
NodeJS: http://nodejs.org/dist/v0.10.35/node-v0.10.35.pkg
GIT: http://sourceforge.net/projects/git-osx-installer/files/
Install on the default directories the tools above and follow these simple steps:
1- Install cordova using sudo
$ sudo npm install -g cordova
2- Create the project$ cordova create hello com.example.hello HelloWorld
3- Add the platform to build ios$ cordova platform add ios
4- Build on iOS accepting the prompt of the XCode license (run this command another time if the build does not complete after you accept the license prompt)$ cordova build ios
5- Open the XCode project file located under hello/platoforms/ios/HelloWorld.xcodeproja popup message should appear the first time you try to open a debuggable project like this.
Confirm the install:
6- Run the app in the xcode simulator pressing play:
If you want to run by command line install the ios simulator with npm:
$ sudo npm install -g ios-sim
$ cordova emulate ios
Nessun commento:
Posta un commento