Win7+vs2012+cocos2d-x 3.7 Create a project to migrate to iphone iOS steps

Source: Internet
Author: User

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

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.