[英]Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo
I am using Mac OS X 10.9.5 with git version 2.1.2. 我使用的是Mac OS X 10.9.5和git 2.1.2版。 Entering git push I receive: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. 输入git push我收到:同意Xcode / iOS许可证需要管理员权限,请通过sudo以root身份重新运行。 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. 我已经运行了sudo xcodebuild -license并输入了“同意”,但问题仍然存在。 Opening Xcode there is no licence agreement appearing. 打开Xcode没有出现许可协议。
在终端中,运行'sudo xcodebuild -license',然后同意这些条款。
sudo xcodebuild -license
将向您显示Xcode的许可证。您必须在最后同意其条款和条件,或者您可以运行下面给出的命令。
sudo xcodebuild -license accept
尝试运行XCode独立版,以确定iOS7更新的许可协议。
After updating all mac port programs git works again. 更新所有mac端口程序后,git再次工作。 I do not understand the downvotes, in my opinion this information may save time for others. 我不明白这些信息,在我看来,这些信息可能为其他人节省时间。
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进行连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.