macbook更新后 git报错


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

解决方法:xcode

一、在终端下输入 sudo xcodebuild -licenseapp

出现  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'
ui

二、点击回车code

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

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]it

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

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]require

四、输入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.rtf

恭喜你,完美解决。

相关文章
相关标签/搜索