Why doesn't the cocos2d-x template show up?

Why doesn't the cocos2d-x template show up?
0.0 0


I installed the cocos2d-1.0.0-x-0.9.0 release according to these instructions: http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Chapter_1*-*How_to_Create_a_New_cocos2d-x_project_on_multi-platforms#3-Start-with-iPhone

The “sudo ./install-templates-xcode.sh” runs perfectly, but when I restart XCode, the templates are not there. Does anyone know why? Cheers


Did you select the choice of xcode3 or xcode4 correctly in the installation? They will install to different paths.
In the other hand, I usually run

./install-templates-xcode.sh -u -f

~~u means only install for the current user,~~f means it will replace the old template.


Yes, I have XCode4- installed to XCode 4, I just tried uf, but it didn’t work. Any other ideas?


Well, after installation, the folders in my HOME/Library/Developer/Xcode/Templates/cocos2d-x/ should appear like this

Can you find these folders in your machine?


Walter, cheers! It was installing to the wrong directory. Thank you


Oh, maybe the install-templates-xcode.sh isn’t work correctly on all machines.
Can you please tell me which path it installed into? So I can improve the shell script in the next version.


Hey… it installed to the right directory, my XCode was just in a weird location…


Oh, I see. Good luck, boy :slight_smile: