Preparations
A Vm for MACOs or MACOs
Install xcode4.2 or later
Install ios sdk 5
Here we will not detail how to install xcode and iOS sdks. You can download and install them in the itues store, provided that you have to register an apple developer and pay 99 $.
Step 1: Install the cocos2d-x Project template
Open the cocos2d-x root directory, find the install-templates-xcode.sh, And now execute it
Open the terminal and go to the directory where the cocos2d-x is placed
Enter sudo./install-templates-xcode.sh to execute the install-templates-xcode.sh and a successful interface appears
The template already exists because I have already installed it.
Start xcode and click Create a New xcode project.
Click the cocos2dx template to create a project.
Enter the project name and ID, and then select the storage path.
Project appears
Project properties are displayed in the right window by default,
Click Run in the upper left corner to check the effect. Is it cool.