[Cocos2d-x]-perfect iOS-cocos2d-x development environment under Virtual Machine

Source: Internet
Author: User

Cocos2d-x learning exchange group: 140326755

Email:Hahayacoder@gmail.com

 

Zero
Black apple is a dead end

After several twists and turns, I have been tossing around for several days, changing the 64-bit win7 system, installing a virtual machine, and installing xcode (it is best for black apple to set the system time to before January 1, 2012 when installing xcode, otherwise, the installation may fail .)
Black apple is successfully installed on t420, and sound card, video card, and other drivers are perfect. But what is lacking in the United States is that it cannot be shut down normally. When it is shut down, there will be five countries, but it can only be said that the virtual machine power is off, baidu and Google haven't found a solution for a long time. Think about anything that cannot be perfect, and shutting down the five countries will not affect the use of the service. If you don't need to use the service, pause the virtual machine, the legendary infinite standby ......

 

A download cocos2d-x latest installation package

Open the terminal, switch to the directory where you want to store the cocos2d-x, and execute the GIT command

Git clone https://github.com/cocos2d/cocos2d-x.git

 

Second, because it is developing iOS programs, you need to configure the xcode Template

After the cocos2d-x is downloaded, CD to the cocos2d-x directory, execute the installation script inside, install the cocos2d-x Template

Sudo./install-templates-xcode.sh-F

 

Three perfect solutions for cocos2d-x not displaying templates after xcode Installation

1> after the installation of xcode template, open xcode found that can not find the template of the cocos2d-x, don't worry, you must be using the black apple, this is because of the black apple management permission problem, I am also a tough programmer. Now I have recorded the perfect solution to this problem here

 

2> open the finder, press SHIFT + command + g (SHIFT + win + G for black apple), and enter ~ in the pop-up window ~ /Library/developer/xcode/template/cocos2d-x

 

3> you will find that ~ /Library/developer/xcode/template/cocos2d-x directory has a lot of things such as red circles, this is caused by permission problems

 

4> go ~ /Library/developer/xcode directory. Right-click the blank directory and select "show Introduction". In this window, the "share and permission" page appears"

 

5> don't worry. You can see the small lock that has been locked. Click the lock to unlock it. The password will be entered during the process. After the lock is opened, all user permissions are changed to read and write.

 

6> you have not finished yet. Click the gear in the lower left corner and select "apply to included projects ...", Finally, select "OK" in the pop-up dialog box"

 

7> Finally, restart the system and you will find that ~ /Library/developer/xcode/template/cocos2d-x directory under the Red Circle is gone, then re-open xcode, found that you can see the lovely cocos2dx Project template, now let's start a wonderful tour of cocos2d-x...

 

 

 

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.