1. Build the Win7+vs2012+cocos2d-x 3.6 environment first, and develop a project, compile and run successfully.
2. Start the Mac machine, enter the http://www.cocos.com/download/to download the cocos3.7 source code, and then place it in a directory.
3. Go to the Cocos directory and execute the following commands (for example, modify as needed):
Cocos new Demogame-p com. Mycompany.demogame-l cpp-d ~/mycompany
Runing command:new
> Copy Template Into/users/lixin/mycompany/demogame
> Copying cocos2d-x files ...
> Rename project name from ' Hellocpp ' to ' demogame '
> Replace the project name from ' Hellocpp ' to ' demogame '
> Replace the Project package name from ' org.cocos2dx.hellocpp ' to ' com. Mycompany.demogame '
-P Package Name
-L Language Programming language
-D dir is the directory where the project needs to be built
4. Replace the corresponding folder in step 3 with the project file classes and resources that were obtained from step 1.
5. Open the Xcode project file from step 3 and click on the project to add the files under the classes and resources directory via the Add files to function.
6. Set up the emulator to run, compile run pass.
7. Open the project with Xcode and click on the configuration mode at the top left (Scheme, on the right of the Stop button), select iOS DEVICE (the usual test is iOS SIMULATOR, such as Iphone6).
8. Click Product, select Archive, the top will prompt archiving, wait patiently.
9. Click on the indow->organizer->archives in order tosee the file, then click Share, you can save as an IPA file
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Win7+vs2012+cocos2d-x 3.7 Create a project to migrate to iphone iOS steps