I tried to install cocos2d framework to my xcode but I can't. I have Xcode version 3.2.5, cocos2d framework version 0.99.5, and iOS version 4.2.
I opened the terminal and entered
$ sudo /mac2/cocos2d-iphone-0.99.3/install-templates.sh
Terminal asks me for my password and I enter it. Everything seems going well; the terminal displayed "done". When I open Xcode, I do not see any cocos2d project in user templates (I do not see user template section in the new project list).What is the problem?
sudo ./install-templates.sh
means to install for system wide. The template would appear in the system wide section.
For as user template, use -u option.
./install-templates.sh -u
This is a duplicate of :
How to install Cocos2d PROJECT templates in Xcode 4?
The solution is that you have to get the latest from github in order to get xcode 4 templates.
The solution link is here:
http://www.cocos2d-iphone.org/forum/topic/13782/page/2#post-82267
The github link is:
https://github.com/cocos2d/cocos2d-iphone.git
I just verified this works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With