macbook更新后 git报错

本文提供了解决macOS更新后Xcode/iOS许可证同意需要管理员权限的问题的详细步骤,包括如何在终端中运行命令,查看并同意许可证协议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


macbook更新后 git报错 Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo

解决方法:

1、在终端下输入 sudo xcodebuild -license

出现  You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.
Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'

2、点击回车

出现 Apple Inc.
Xcode and Apple SDKs Agreement ...

By typing ‘agree‘ you are agreeing to the terms of the software license agreements. Type ‘print‘ to print them or anything else to cancel, [agree, print, cancel]

3、点击空格键,直到把内容看完。

By typing ‘agree‘ you are agreeing to the terms of the software license agreements. Type ‘print‘ to print them or anything else to cancel, [agree, print, cancel]

4、输入agree 回车。

出现 By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] agree

You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf104638_iFiR_260921.png

恭喜你,完美解决。

转载于:https://my.oschina.net/u/260921/blog/522000

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值