注意xcode4.3以后,xcode内部模版位置变更了,注意:
1. finder搜索是找不到系统模版相关文件的
2. 自定义模版一定不要在系统模版目录下修改
3. 自定义模版应放到如下位置,xcode会自动识别(注意看xcode-->preferences-->locations 相关目录)
~/Library/Developer/Xcode/Templates/File Templates/
xcode系统模版所在位置
1
|
/
Applications
/
Xcode
.
app
/
Contents
/
Developer
/
Library
/
Xcode
/
Templates
/
File
Templates
|
http://www.bobmccune.com/2012/03/04/creating-custom-xcode-4-file-templates/
另外,cocos2d-x 的install-templates-xcode.sh 安装模版的脚步,要注意,用当前用户 sudo的方式安装,而不是先su,再运行(su方式会安装到root目录),目前看脚本实际上可以用当前用户的权限就能完成安装模版的事情,没必要提醒限制用户root权限。