PhoneGap – Getting Started using Xcode
- Download and install NodeJS and PhoneGap
- Type this in Terminal: (make sure you have a stable internet connection because this will affect the generation of the code like missing libraries, invalid structures of directories etc.)
You have to do this project creating and building on command prompt because in later versions of XCode, they do not give you to choose Cordova application or PhoneGap application when you start a new project like shown in this picture:
- Find the .xcodeproj and run it (it will be opened automatically in XCode)
- And then Run the project (by pressing the button on the top left) and you will get this
You can modify the index.html or .js scripts and see how they look in simulator.An error usually occurs (the error message would be “index.html not found” when there is no index.html in www directory or the structure of the directory is not like shown below.
Note:
- The version I’m using is Xcode 5.0, iOS Simulator 6.1, PhoneGap 2.9.0 and node.js v0.10.20. Running on Mountain Lion 10.8.5
- If you are using different versions in either of one of them, the result might be slightly different
Ripiu Info 9:29 am on December 5, 2013 Permalink |
Which one do you recomend, phonegap or native ios for newbie like me ?
CG 10:23 am on December 5, 2013 Permalink |
try https://build.phonegap.com
www.hubmesh.com 11:27 pm on June 25, 2014 Permalink |
Many thanks for every other useful website. The place altogether different may possibly I receive that kind of information coded in a very perfect means? I’ve got a mission i’m right now operating upon, so i are actually with the be aware of similarly info.
Collum 9:22 pm on July 1, 2014 Permalink |
whoah this web site is usually amazing i like reading your content. Maintain the great work! You know, many men and women want circular with this info, you are able to encourage them to enormously.