cocos2d 安装出现Error: This script must be run as root in order to copy templates to /Library/Applicatio

Error: This script must be run as root in order to copy templates to /Library/Application Support/Developer/Shared/Xcode

Try running it with ‘sudo’, or with ‘-u’ to install it only you:
sudo ./install-templates.sh
or:
./install-templates.sh -u


在命令后添加-u

安装后还是出现了很多的copy的错误,后来进入

/Library/Application Support/Developer/Shared/Xcode

然后在终端安装

sudo ./install-templates.sh

你可能感兴趣的:(终端,templates)