iOS HTML5 setting PHONEGAP development environment

Source: Internet
Author: User

How to build an iOS platform PhoneGap development environment (PHONEGAP2.5)(2013-03-13 14:44:51)
Label:

C=blog&q=it&by=tag "target=" _blank ">it

Because in the near future in the HTML5-based cross-platform transplant, set up a good development environment, it really cost a lot of effort. Now spare down by the way to tidy up, for everyone to share. First introduce the phonegap. PhoneGap is a cross-platform open source mobile Web application Development framework based on the HTML5 standard.

It accepts users to access mobile device's local applications, API interfaces, and applications via web technology.

The official site of PhoneGap is http://www.phonegap.com. Friends can download the latest PhoneGap and API documentation from the official site. Here's a look at my development environment. (Mac OS 10.8.2/xcode 4.6 sdk6.1/phonegap2.5/test machine ipad1,ipad2 are ios6.1.2) ———————————————————————————————————— —————————— below the cutting line for a detailed procedure ——————————————————————————————————————————————
1. Download PhoneGap Latest Version number: http://phonegap.com/download/The version number I downloaded is 2.5. Download unzip to your own definition directory.

2. Open the local terminal.

( since I'm an iOS transplant, this is just about building the development environment under the iOS platform.)

CD /users/mac/documents/myhome/phonegap-2.5.0/lib/ios/bin (here is my local folder, you can find it yourself based on your own folder) in the current path $. /CREATE/USERS/MAC/DESKTOP/DEMO2COM.COMPANY.CXWJ HelloWorld (in this case, create a project directory on the desktop that is named Hellworld)
Note: The error in the figure is due to a directory of the same file name on my desktop. Please don't make the same mistake with me.
3. In the terminal, direct the CD back to the original default path. Then go to the Cordova path of our desktop directory. Run $./build under this path until you see the word success.


4. Open the demo directory you created on the desktop.

Then use Xcode to open the inside of the Demoproject, using the virtual machine to perform the assumption that you will succeed.


5. Next we continue to see project. The tree structure on the left side of Xcode should look like this. See the WWW directory, and here is where your HTML5 program is.


These are phonegap building environments.

I wish you success.

iOS HTML5 setting PHONEGAP development environment

Related Article

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.