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$ 

     

  • 相关阅读:
    题解 P4999 【烦人的数学作业】
    题解 P2657 【[SCOI2009] windy 数】
    题解【洛谷 P1466 [USACO2.2]集合 Subset Sums】
    乘法逆元
    浅谈二维前缀和
    浅谈位运算
    浅谈 Lucas 定理
    浅谈 exgcd
    【洛谷P1754 球迷购票问题】题解
    RPA机器人工厂化时代下,艺赛旗要做什么样的“四新”产品
  • 原文地址:https://www.cnblogs.com/waitingbar/p/6692763.html
Copyright © 2011-2022 走看看