当我尝试安装Cocos2d-iphone 3.0.0 RC4
时,出现错误:(在没有 sudo
的情况下运行)
Error -60005 occurred while executing script with privileges.
因此,我尝试显示其包内容并使用终端执行:cd ...Cocos2D Installer 3.0.0.app/Contents/MacOS
我尝试此命令:(使用 sudo
)
sudo ./Cocos2D\ Installer\ 3.0.0
它可以工作,但我得到了一些错误:
[1m>>> Installing Cocos2D-v3.0.0 files (B[m
[1m>>> Installing Cocos2D-v3.0.0 templates (B[m
[4m[1mCocos2D Template Installer (Cocos2D-v3.0.0)(B[m
Error: [31m✖︎(B[m Script cannot be executed as root.
In order for it to work properly, please execute the script again without 'sudo'.
If you want to know more about how to use this script execute '/Users/viethung/Downloads/Cocos2D-v3.0.0/install.sh --help'.
[1m>>> Building/Installing Cocos2D-v3.0.0 documentation, this may take a minute.... (B[m
appledoc version: 2.2 (build 963)
Generation step 4/5 failed: GBDocSetInstallGenerator failed generating output, aborting!
Documentation set was installed, but couldn't reload documentation within Xcode.
Xcode got an error: No documentation set present at specified path.
[1m>>> Cocos2D-v3.0.0 installation complete! (B[m
有没有比这种方式更好的方法?
答案 0 :(得分:2)
我有同样的问题。
我认为您安装了旧的cocos2d-iphone并导致了这个问题。
你应该首先删除旧的cocos2d-iphone。我删除了:
~/Library/Developer/Xcode/cocos2d v3.x
再次安装。它对我有用。
希望它适合你:)