This article describes how to use xcode to build a phonegap application on the Apple system.ProgramEnvironment and workflow steps.
1. First, make sure your computer has xcode.
2. Install phonegap
I installed the phonegap-1.8 version now,Browse to the LIB/IOS/folder of the unzipped file and double-click the Cordova-1.8.0.dmg package installer. This installation is relatively simple. Go to the next step and check that the installation is complete.
3.Create a project (important) in xcode)
(1)Click Create a New xcode project on the xcode Welcome Screen
(2)Under IOS> application, locate and select the phonegap-based application template, and click Next
(3) enter the project name. Note: The first letter is capitalized, and the following optionsDo not select.
(4)Select a folder in your file system, and your phonegap project will reside in this file system. ClickCreate
(5)In the upper left corner of the window, click Run to run the application.
(6) Add the WWW folder to your project.Xcode tries to start the phonegap application in the IOS simulator. For the first startup, you will see the error message "error: start page at 'www/index.html 'was not found ". Don't worry. This is normal! However, you have created a WWW folder during the first step. You will not encounter this error after you add it to your project. Find the WWW folder and click Add
(7)Click Run to start the project again