Game Development Reference
In-Depth Information
Note that the leading dot before the path is essential—without it, you'll most likely get
a “No such file or directory” error.
The templates are copied to the user's Developer directory, which is /Library/
Developer/Xcode/Templates . This is the directory to browse to in Finder if
you ever want to delete the cocos2d Xcode templates. The -f switch forces the script
to replace any existing cocos2d template files so that you don't get any errors if you've
previously installed the cocos2d Xcode templates.
Remember that you will have to run this script each time you download a new cocos2d
version to upgrade the Xcode project templates to the latest version.
Note To uninstall cocos2d, simply delete the cocos2d-iphone-2.0 folder and
any cocos2d projects you no longer need. To remove the cocos2d Xcode tem-
plates, delete the two folders beginning with cocos2d in /Library/
Developer/Xcode/Templates and /Library/Developer/
Xcode/Templates/File Templates .
How to Create a cocos2d Project
After installing the cocos2d project templates, open Xcode and select File New Pro-
ject. Clicking the cocos2d v2.x entry on the left-hand side should display the three
cocos2d icons shown in Figure 2-4 . If that's not what you're seeing, go back to the pre-
vious section and verify that installing the cocos2d Xcode project templates succeeded
without errors.
 
Search Nedrilad ::




Custom Search