zoukankan      html  css  js  c++  java
  • 解决安装xcode后git使用报错的问题

    一、现象:

    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$ 

     

    原文链接:https://www.cnblogs.com/waitingbar/p/6692763.html

  • 相关阅读:
    尖峰冲击测试(spike Testing)
    mysql返回记录的ROWNUM(转)
    SQL2005四个排名函数(row_number、rank、dense_rank和ntile)的比较
    JUnit编写单元测试代码注意点小结
    Linux下Tomcat的启动、关闭、杀死进程
    linux下oracle11g R2的启动与关闭监听、数据库
    linux下使用yum安装mysql详解
    VC++ 实现文件与应用程序关联
    C++ 去掉字符串首尾的 x20 字符
    VC++ 线程同步 总结
  • 原文地址:https://www.cnblogs.com/cyfeng/p/15033984.html
Copyright © 2011-2022 走看看