Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocos2d install

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?

like image 419
Adel Avatar asked Apr 05 '11 19:04

Adel


2 Answers

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
like image 105
Kazuki Sakamoto Avatar answered Oct 03 '22 00:10

Kazuki Sakamoto


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.

like image 27
rhigdon Avatar answered Oct 03 '22 00:10

rhigdon