Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing cocos2d 2.0 XCode templates

I'm trying to instal the cocos2d 2.0 XCode 4 templates but I keep getting errors when running the install script. I've tried to manually copy the templates but when I try to compile my project, it gives me a bunch of errors. Can anyone help?

Here are the errors that the install script throws at me:

http://pastebin.com/ZdmAxwef

Any help is greatly appreciated!

Thanks!

like image 256
Dro Sarhadian Avatar asked Jan 02 '12 20:01

Dro Sarhadian


2 Answers

You probably install the cocos2d 1.x templates using root. Since installing as root isn't supported anymore, you first have to chown them back to your user.

like image 80
Tom Avatar answered Sep 28 '22 05:09

Tom


There are three things you can try:

First, make sure you are running install-templates.sh as sudo

cd *location of cocos2d-2.0 folder*
sudo ./install-templates.sh -u -f
where -f forces the installation

Second, you may need to change the install-templates.sh script to install to a different location (try both your user and directly to the Machintosh HD)

Third, (which is what i often have done in the past) is copy the folders over to the correct directory (or at least make the directories the mkdir are failing on and try again)

like image 32
Nightfa11 Avatar answered Sep 28 '22 06:09

Nightfa11