Cordova official website about how to create a Phonegao project is very detailed, here will not repeat.
The actual project development may need to add Cordova to existing projects, recently encountered this problem. Although there are some tutorials online,
However, it is not applicable to the latest version of Cordova, so the steps are documented below.
1. Join us already exists named Demo project, the directory structure is as follows:
2. Copy Cordova related files to the demo directory, copy the following directory structure as follows
3. Add Cordovalib.xcodeproj to Demo project, right click Add Files to "demo"
4. Add the WWW directory to the project, remember to tick the Create folder references
5. Follow step three to add Config. C to the project, the directory structure is as follows
6. Select the project build Settings->other Links, set-objc-all_load
7. Select Build phases->new Run script Phase to name the new run script Phase named copy www directory
8.Build phases->target Dependencies Add cordovalib
9.Link Binary with Librarys add libcordova.a, mobilecoreservices,assetslibrary
9. Next you can use Cordova Normally, note other linkers must be set,
'-[__nscfconstantstring Jsonobject]: Unrecognized selector sent to instance otherwise a similar error will be prompted
Reference Link: http://outof.me/embedding-cordovalib-in-your-iosphonegap-app-project/
IOS add Cordova to existing Xcode projects