Install Cocos2d

I tried installing the cocos2d environment on my xcode, but I cannot. I have Xcode version 3.2.5 , cocos2d 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 

The terminal asks me for my password, and I enter it. Everything looks good; The terminal displays "done." When I open Xcode, I do not see any cocos2d project in user templates (I do not see the user template section in the new list of projects). What is the problem?

+6
iphone xcode cocos2d-iphone
source share
5 answers
 sudo ./install-templates.sh 

means installation for the entire system. The template appears in the system section.

Use the -u option as a user template.

 ./install-templates.sh -u 
+3
source share

This is a duplicate:

How to install Cocos2d PROJECT templates in Xcode 4?

The solution is that you need to get the latest data from github to get xcode 4 templates.

The solution link is here:

http://www.cocos2d-iphone.org/forum/topic/13782/page/2#post-82267

Github link:

https://github.com/cocos2d/cocos2d-iphone.git

I just confirmed that this works.

+2
source share

I use only. / install -templates.sh -u -f and it works for me.

+1
source share

Do it:

In Finder, go to your hard drive,

Go to Developer => Library and drag the cocos2d folder to this folder,

Then open a terminal, type cd and drag the cocos2d folder into the terminal window.

Now do sudo./install-templates.

That should work.

After rebooting xcode.

Hope this helps.

0
source share

sudo./install-templates.sh -u -f Do not forget that -f

0
source share

All Articles