To create and run a Cocos2d project, you have to install SpriteBuilder and Xcode. In this section, we will briefly cover how to do so.
To download and install Cocos2d, go to http://cocos2d.spritebuilder.com/download.
SpriteBuilder is the official installer of Cocos2d now. To install, click on the Cocos2d-SpriteBuilder installer link. This will open the Mac App Store Preview page.
If you would like to download an older version of Cocos2d, you can go through the links in the archive section of the page and download it from there as well.
Click on the View in Mac App Store link and then click on Launch Application ...