同意 Xcode/iOS 许可证需要管理员权限,请通过 sudo 以 root 身份重新运行
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26485555/
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
提问by robogos
I am using Mac OS X 10.9.5 with git version 2.1.2. Entering git push I receive: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I have run sudo xcodebuild -license and entered 'agree', but the problem remains. Opening Xcode there is no licence agreement appearing.
我使用的是 Mac OS X 10.9.5 和 git 版本 2.1.2。输入 git push 我收到:同意 Xcode/iOS 许可证需要管理员权限,请通过 sudo 以 root 身份重新运行。致命:无法从远程存储库读取。请确保您拥有正确的访问权限并且存储库存在。我已经运行 sudo xcodebuild -license 并输入“同意”,但问题仍然存在。打开 Xcode,没有出现许可协议。
采纳答案by robogos
After updating all mac port programs git works again. I do not understand the downvotes, in my opinion this information may save time for others.
更新所有 mac 端口程序后,git 再次工作。我不明白反对票,在我看来,这些信息可以为其他人节省时间。
回答by Aman Jain
sudo xcodebuild -license
will show you the license of Xcode.You have to agree its terms and condition at the end or you can just run the command given below.
sudo xcodebuild -license
将向您显示 Xcode 的许可。您必须在最后同意其条款和条件,或者您可以直接运行下面给出的命令。
sudo xcodebuild -license accept
回答by himan
in terminal, run 'sudo xcodebuild -license' and then agree to the terms.
在终端中,运行“sudo xcodebuild -license”,然后同意条款。
回答by Joseph Bolade Caxton-Idowu
If you have a private remote repo. make sure you accept the license agreement at the server as well. it took me weeks to find the error is coming from the server side as I was using ssh to connect
如果您有私人远程仓库。确保您也接受服务器上的许可协议。当我使用 ssh 连接时,我花了数周时间才发现错误来自服务器端
回答by Mohamed Emad Hegab
try running XCode standalone to say OK to license agreement for iOS7 update.
尝试独立运行 XCode 以同意 iOS7 更新的许可协议。