Xcode download
- 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
- Cordova requires node installation, use Safari to open nodejs.org, download and install
- 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
- We create a new HelloWorld project and enter it in the terminal
Cordova Create HelloWorld
- 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
- One way is to enter commands in the terminal
Cordova Run iOS
- Another way to do this is to open the HelloWorld project in Xcode and click?? Key
Cordova Development environment Construction under MAC