Reputation: 197
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:
Any help is greatly appreciated!
Thanks!
Upvotes: 5
Views: 4348
Reputation: 586
This is many years ago
install the latest version of Cocos2D from
it will install everything automatically including the templates. just start a new Xcode project and it just be there in the template options
Upvotes: 0
Reputation: 586
I followed these exact instructions
cd /src/cocos2d-iphone-2.0/
./install-templates.sh -f
which i found here http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:migrate_to_v2.0
side note- on my mac hard drive "Macintosh HD" i created a folder src and copied the cocos2d-iphone-2.0 folder in it. and im running mountain lion and Xcode 4.4 this worked perfectly for me.
hope this helps
Upvotes: 3
Reputation: 41
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.
Upvotes: 4
Reputation: 141
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)
Upvotes: 3