http://code.google.com/p/cocos2d-iphone/downloads/list
下面然后解压到指定目录,我解到桌面。
安装:打开终端,进入到解压文件夹,执行install-template.sh就会自动安装。
f-fshmatomac:~ ffsh$ cd /Users/ffsh/Desktop
f-fshmatomac:Desktop ffsh$ cd cocos2d-iphone-2.0
f-fshmatomac:cocos2d-iphone-2.0 ffsh$ ./install-templates.sh
cocos2d-iphone template installer
Installing Xcode 4 cocos2d iOS template
----------------------------------------------------
...creating destination directory: /Users/ffsh/Library/Developer/Xcode/Templates/cocos2d v2.x/
...copying cocos2d files
...copying CocosDenshion files
...copying CocosDenshionExtras files
...copying Kazmath files
...copying template files
done!
Installing Xcode 4 Chipmunk iOS template
----------------------------------------------------
...copying Chipmunk files
done!
Installing Xcode 4 Box2d iOS template
----------------------------------------------------
...copying Box2d files
done!
Installing Xcode 4 CCNode file templates...
----------------------------------------------------
...creating destination directory: /Users/ffsh/Library/Developer/Xcode/Templates/File Templates/cocos2d v2.x/
done!
安装完成后: