Configuring PhoneGap (Cordova) 5.1.1 development environment under Mac

Source: Internet
Author: User

Tagged with: Hone hello nod latest configuration index PHONEGAP build development environment

Now the latest Cordova version number is 5.1.1, under the Mac to build the development environment process such as the following:

1) First install the NODEJS environment

Access official website: http://nodejs.org/. Now version number: v0.12.7

Click "INSTALL". The installation package for your Mac is downloaded. Double-click Install to do so.

2) Enter the terminal command line. Using NPM to install Cordova, commands such as the following:

$ sudo npm install - G Cordova

3) Create phonegap new project, commands such as the following:

$ Cordova Create test cn.com. Test Test

After executing this command. The Cordova program will help you create the test directory. Inside is the PHONEGAP environment where the project name is test.

4) Enter the test directory, such as the following command:

$ cd Hello

5) Add iOS platform, commands such as the following:

$ Cordova Platform Add iOS

6) You can also add the required Cordova plug-in to the device plug-in as an example:

$ Cordova Plugin Add Cordova-plugin-device

7) Double-click Test.xcodeproj to open the Cordova development environment via Xcode

8) Develop Cordova applications.

Configuring PhoneGap (Cordova) 5.1.1 development environment under Mac

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.