在最新安装cocos2d-iphone v3.1.1的时候,每次执行总会执行失败:
Installation failed!
Please, send an email containing your error.log on the support email (written in the --help).
It would make it easier for us to improve this script and fix the issues immediately.
Your error log is located at: /Users/saa/Desktop/cocos2d-install.log
Please, send an email containing your error.log on the support email (written in the --help).
It would make it easier for us to improve this script and fix the issues immediately.
Your error log is located at: /Users/saa/Desktop/cocos2d-install.log
解决办法:
前往:/Users/saa/Library/Developer/Xcode/Templates/
在目录下面创建2个文件夹:
cocos2d v3.x
File Templates
然后执行
: ./install.sh --force
mac-guo:cocos2d-iphone saa$ ./install.sh --force
Cocos2D Template Installer (Cocos2D-v3.0.0)
Removing old project template files: /Users/saa/Library/Developer/Xcode/Templates/cocos2d v3.x
rm: /Users/saa/Library/Developer/Xcode/Templates/cocos2d v3.x: Permission denied
>>> Installing project templates
...copying cocos2d files
...copying cocos2d-ui files
...copying Chipmunk files
...copying ObjectAL files
...copying kazmath files
...copying CCBReader files
...copying Xcode template files
>>> Installing file templates
...copying CCNode file templates
Cocos2D Template Installer (Cocos2D-v3.0.0)
Removing old project template files: /Users/saa/Library/Developer/Xcode/Templates/cocos2d v3.x
rm: /Users/saa/Library/Developer/Xcode/Templates/cocos2d v3.x: Permission denied
>>> Installing project templates
...copying cocos2d files
...copying cocos2d-ui files
...copying Chipmunk files
...copying ObjectAL files
...copying kazmath files
...copying CCBReader files
...copying Xcode template files
>>> Installing file templates
...copying CCNode file templates
创建成功。