同意 Xcode/iOS 许可证需要管理员权限,请通过 sudo 以 root 身份重新运行 OS 更新后无法运行 git
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32720476/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo cannot run git after OS update
提问by StackFlowed
The IDE is giving an error message that it
IDE 给出了一条错误消息,表明它
can't start git: /usr/bin/git
, however the path is correct, and it was working before. idea.log contains the following error:
can't start git: /usr/bin/git
,但是路径是正确的,并且之前可以正常工作。idea.log 包含以下错误:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
回答by StackFlowed
This generally occurs after the mac OS update. All you need to do in terminal is run
这通常发生在 mac OS 更新之后。您需要在终端中做的就是运行
sudo xcodebuild -license
sudo xcodebuild -license
and then agree to the terms.
然后同意条款。