Use PhoneGap to wrap HTML5 Web pages for iOS app

Source: Internet
Author: User

Tool Preparation: Mac Dev, apple Developer account (not required when testing feasibility, but required for real-time commissioning and release)


phonegap:http://phonegap.com/install/(if not found, please pull down)


As of today, PhoneGap has been updated to 2.9.1 version, in order to guarantee the fast use, I provided a copy in my Baidu network disk:

Link: Http://pan.baidu.com/s/1gd9yPyF Password: zvcs


Ok whether you download it yourself or download it through my web drive to a ZIP package, first we unzip it and find the create under Phone-2.9.1/lib/ios/bin through the terminal, such as


We saw a create in the middle.

In this directory, execute a command like this:

./create [Project Catalog] [Home (reverse write)] [project name], such as

./create ~/project/ios/woodyplusphonegap com.woodyplus.www Woodyplusphonegap


Go to the project directory you set up and you can open the Xcode project.

Double-click the project file to find the index.html in your project


If you are publishing a built-in HTML, you can directly build

If you are like me, choose online HTML (more flexible, can be updated in the background), then you can write a index.html


<! DOCTYPE html>

Then click to run, you can see the following demo



Isn't it simple?


Use PhoneGap to wrap HTML5 Web pages for iOS app

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.