Cordova Development environment Construction under MAC

Source: Internet
Author: User

Xcode download
    1. To download Xcode from the Mac App store, just type Xcode in the store and download the first one is OK
Cordova Installation and Configuration
    1. Cordova requires node installation, use Safari to open nodejs.org, download and install
    2. After the installation is complete, you need to download Cordova from the terminal , enter the following command to complete the installation Cordova
    • Use the Finder to enter a terminal in the upper right corner to search for it

sudo npm install-g Cordova

New Project
    1. We create a new HelloWorld project and enter it in the terminal

Cordova Create HelloWorld

    1. The above command will create a HelloWorld folder, enter the following command in the terminal to add iOS development

CD HelloWorld Cordova Platform add iOS

Project Plug-in configuration

If you need to add a plug-in to your project, such as adding a ibeacon plugin

Cordova Plugin Add Https://github.com/petermetz/cordova-plugin-ibeacon.git

Run the project
    1. One way is to enter commands in the terminal

Cordova Run iOS

    1. Another way to do this is to open the HelloWorld project in Xcode and click?? Key

Cordova Development environment Construction 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.