Build a phonegap application environment using xcode

Source: Internet
Author: User

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

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.