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...