xcode下安装cocos2d-x,如果你之前安装过旧版本,然后再安装新版本,则会提示该问题,如图: 解决方法很简单,只需要将 sudo ./install-templates-xcode.sh 改成 sudo ./install-templates-xcode.sh -f 强制重新安装即可。