简体   繁体   English

同意Xcode / iOS许可证需要管理员权限,请通过sudo以root身份重新运行

[英]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.

相关问题 “同意 Xcode/iOS 许可证需要管理员权限,请通过 sudo 以 root 身份重新运行。” 使用 GCC 时 - “Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.” when using GCC Xcode:有什么方法可以刷新/重新运行操场? - Xcode: Any way to refresh/re-run the playground? 重新运行失败的NSURLSessionTask - Re-run a failed NSURLSessionTask iOS App的Root权限 - Root Privileges for iOS App iOS,setTransform被setFrame覆盖? 重新运行setFrame后转换不重新绘制 - iOS, setTransform overridden by setFrame? Transform not re-drawing after setFrame is re-run iOS开发中的Tab Bar控制器。 为什么切换选项卡时它会重新运行所有代码? - Tab Bar controllers in iOS development. Why does it re-run all the code when I switch tabs? 如何获得iOS应用的root权限? - How to gain root privileges for iOS app? 仅在重新运行应用程序后,NSUserDefaults中的数据才会刷新 - Data in NSUserDefaults refreshes only after re-run application Apple会在使用bitcode时重新运行宏吗? - Will Apple re-run macros when using bitcode? 重新运行应用程序后,在UIDatePicker中显示节省的时间 - Display saved time in UIDatePicker after re-run app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM