Mobile WebApp development-phoneGap + iOS Environment

Source: Internet
Author: User

Zookeeper

With the rapid development of HTML5 and the desire for cross-platform mobile App development, there will be more and more demands for using PhoneGap for development. Based on the information on the network and combined with your own practices, we have established a phoneGap-based iOS development environment, sorted out the steps, and persisted them to the blog to avoid forgetting!

I. Environment Introduction

(1) phoneGap 2.9.0: http://phonegap.com/install/

(2) xcode 4.5.2

Ii. Setup steps

(1) unzip the phonegap-2.9.0 to the Users/mac/Downloads directory

(2) double-clickRun the create File under phonegap-2.9.0 \ lib \ ios \ bin, the result is as follows, and copy the shadow part:

(3) create a folder PgapForIOS in the project workspace. The full path is Users, mac, Documents, iOS_workspace, and PgapForIOS.

(4) create a terminal window, paste the copied content, and add Users/mac/Documents/iOS_workspace/PgapForIOS cn.com. vs PageForIOS (Folder address, Bundle Identifier, project name), press enter, as shown below:

(5) The project content is generated in the Users/mac/Documents/iOS_workspace/PgapForIOS directory, for example:

(6) Open the generated project through XCODE, such:

(7) Modify index.html with the following content:

(8) run the project. The following interface is displayed, and the project can be set up successfully!







Zookeeper

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.