码迷,mamicode.com
首页 > 其他好文 > 详细

解决安装xcode后git使用报错的问题

时间:2017-04-11 13:47:06      阅读:324      评论:0      收藏:0      [点我收藏+]

标签:nal   signed   app   build   for   work   not   password   class   

一、现象:

 

htmlxdeMacBook-Pro:demo htmlx$ git status

Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.

 

二、解决步骤:

1、按照提示输入sudo xcodebuild -license (有需要输入密码的接着输入电脑的密码,回车)

htmlxdeMacBook-Pro:demo htmlx$ sudo xcodebuild -license

Password:

 

2、不断回车查看协议之类

 

htmlxdeMacBook-Pro:demo htmlx$ sudo xcodebuild -license

Password:

  

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‘

Apple Inc.

 

Xcode and Apple SDKs Agreement

...

一直回车或按空格键往下阅读

最后如:

...

8.7     Entire Agreement; Governing Language

This Agreement constitutes the entire agreement between the parties with respect to the use of the Apple Software and Apple Services licensed hereunder and supersedes all prior understandings regarding such subject matter.  Notwithstanding the foregoing, to the extent that You have entered into the Apple Developer Program License Agreement (PLA) with Apple and are validly licensed by Apple to exercise additional rights, or to use additional features or functionality of the Apple Software or Apple Services under the PLA, You acknowledge and agree that the PLA shall govern Your use of such additional rights and privileges.  No amendment to or modification of this Agreement will be binding unless in writing and signed by Apple.  The parties hereto confirm that they have requested that this Agreement and all related documents be drafted in English.  Les parties ont exigé que le présent contrat et tous les documents connexes soient rédigés en anglais. 

EA1421

8/24/16

 

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、输入agree进行同意 (如下面第一段的最后单词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

htmlxdeMacBook-Pro:demo htmlx$

 

 

5、OK  开工。。。

 

htmlxdeMacBook-Pro:demo htmlx$ git status

On branch demo

Your branch is up-to-date with ‘origin/demo‘.

nothing to commit, working tree clean

htmlxdeMacBook-Pro:demo htmlx$ 

 

 

解决安装xcode后git使用报错的问题

标签:nal   signed   app   build   for   work   not   password   class   

原文地址:http://www.cnblogs.com/waitingbar/p/6692763.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!