详见:http://www.cocos2d-iphone.org/archives/1412
cocos2d Xcode 4 templates 安装和卸载目录:~/Library/Developer/Xcode/Templates
安装:
$ mkdir -p ~/Library/Developer/Xcode/Templates
$ cd ~/Library/Developer/Xcode/Templates
$ tar xzvf cocos2d-1.0.0-beta_templates.tar.gz
卸载相反即可