【发布时间】:2014-04-10 12:47:03
【问题描述】:
当我尝试安装 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
有没有比这种方式更好的方法?
【问题讨论】:
-
你真的重新下载了包吗?听起来它已经损坏了。
-
我读这篇文章的方式,似乎你正在 sudo'ing 安装程序,并且抱怨你不能以 root 身份运行它,即不要 sudo,只需运行它。虽然这不是第一次错误消息是虚假的,但我会尝试一下。
-
@LearnCocos2D:谢谢,但我不这么认为。因为它在其他 Mac 上运行良好
-
@YvesLeBorg:如果我在没有“
sudo”的情况下运行,我会收到错误 -60005
标签: xcode cocos2d-iphone