macbook更新后 git报错


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.rtfmacbook更新后 git报错_第1张图片

恭喜你,完美解决。

你可能感兴趣的:(macbook更新后 git报错)