I’m assuming you already downloaded Xcode. Try to get the latest version, though Xcode 3 works just as well. I am also assuming you are using a Mac. Doesn’t make much sense to try and install Cocos2D on a platform, which…Well, I’m sure you get the point. My drawling on won’t install Cocos2D on your computer. What will, are the following steps:
1. Get Cocos2D! This is if you hadn’t already downloaded it. Click here, and download the STABLE VERSION. The unstable version, is well, kind of like a bipolar divorcee.
2. Unarchive the file, or unzip it. Same thing. Double-click the file you just downloaded. A folder should appear.
3. Drag the folder to the desktop. It makes for easier use.
4. Open Terminal. If you aren’t familiar with Terminal, it is the Mac equivalent of the Windows’s Command Prompt. Just go to Finder, click Applications, and scroll till you find Terminal. Open it.
5. Type “cd” (make sure you leave out the quotations. Then hit the spacebar once after you typed the c and d)
6. Remember the folder from Steps 2 and 3? Well, you need to drag the entire folder from your desktop into Terminal. Make sure there is exactly one space between where you dropped the folder, and the letters c and d.
7. Press return.
8. Type the following: ./install-templates.sh -u
9. Press return.
10. If you did everything correctly, text should be appearing at an inhuman rate in the Terminal window. If not, it has to probably due with the text you have to type manually. Check everything once more.
11. Once the text stops, open Xcode. On the left side of the Xcode Menu Window, under templates, you’ll notice the new User Templates which you just added!
12. You are ready to roll now! If you have any problems, contact us and we’ll fix the tutorial.

Seven Considerations for PHP Hosting
Intersteller Space Travel: is it Possible?
Smart Ways to Choose a Gadget
There’s an App for That: How to Find the Best Apps
Finding the Right Hosting Environment for Your Photographs
Great tutorial JoeBlabbah! It’s very thorough.
Some pictures of the installation process could be helpful :)
Some things I would like to point out to people interested in installing Cocos2D are that Terminal is found in the “Utilities” folder in the “Application” folder, and that there are many cool samples that you can look at by opening the xcode project that comes in the folder that you downloaded.
Correct me if I’m wrong, but I think that these instructions for installing Cocos2D for iOS will also work for the standard version
Hey,
I am 14 and am learning how to use Xcode.
However, for some reason after installing it and running the application
, it comes up with an error saying SIGABRT, so I can’t run the application. After
I uninstall it and reinstall it the same thing happens or there are about 40 errors.
Please help???
Thanks!
Hi Lukas,
it’s great that you are interested in learning how to program at a young age. By “the application”, do you mean Xcode or an app project created with the Cocos2d framework? Are you sure you’re not running the example Cocos2d project (which is not an actual project)? The first thing that comes to mind is cleaning all targets (look in the build menu), shutting down xcode, restarting xcode, recompiling the app project, and running the app in the iOS simulator.
I hope this helps. If not, please reply and I will try to diagnose your problem and solve it.
Cheers,
iPodnerd
Thank you so much for this tutorial!! Had sooo much trouble trying to install this, but worked fine without the “sudo” part everyone else was saying to do
You are very welcome! Thanks for stopping by. I’m glad this process worked for you.
I checked out your game studio website and saw that you created the game “Save the Monster”. Congratulations on releasing a title! It looks great.
Thanks For great tutorial and guidance …….
Thank You,
Pals
Hello
Thanks for the help :) i’ve just installed the cocos2d and the templates as told in these instructions, it says everything installed as it should but when i open xcode and go to new project, i find there are no cocos templates shown on the left. Any help would be greatly appreciated.
thanks
I did everything accordingly everything was installed but when i tried opening the simulator to test it and che the “helloworld” to make sure everythis was working properly i got a Falied 2Build and this
warning: couldn’t add ‘com.apple.XcodeGenerated’ PLease help
Hi Romeo,
Try changing the file & directory permissions of your developer folder. Type this in the Terminal application (replace your username):
sudo chmod -R 777 /Users/[your user directory]/Library/Developer/
You might be prompted to enter an admin password.
Maybe Cocos2d changed your folder permission.
nice tutorial it helps me a lot …..
thnks
please tell me difference btn OPenGL and COCOs 2d lib ???
Cocos2D is simply a framework that makes it a lot easier to use OpenGL. Think of it as a high level programming language: it contains functions that do all of the dirty work for you. However, it can limit what you can due due to its simplification. For instance, you can’t make 3D objects.
AWESOME! Finally a tutorial that is in-depth! I have been following tutorials similar to this to try and get it installed but i have been leaving out the space after cd. Some people may think this is common knowledge, but im am so happy someone finally took the time to make it clear. Great stuff