cocos2D is an open source framework for creating 2D games on a variety of different platforms. The Mac OS X / iOS porting includes some useful templates for Xcode providing the backbone code for a new cocos2D application. After they are installed, they will be available in the “New Project” window of Xcode.
To install the cocos2D templates for Xcode, follow these steps:
- Download the latest version of cocos2D here.
- Unpack the archive in a location of your choice. From now on, we will refer to this location as
- Open a terminal (located in /Applications/Utilities/Terminal).
cd [cocos2Dpath]and then press Return.
./install-templates.sh -fand press Return
-f flag forces the installation of the templates if an older version is already present.