首页 > 系统服务 > 详细

macbook更新后 git报错

时间:2015-10-26 12:20:39      阅读:350      评论:0      收藏:0      [点我收藏+]


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.rtf技术分享

恭喜你,完美解决。

macbook更新后 git报错

原文:http://my.oschina.net/u/260921/blog/522000

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!