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$ 

     

  • 相关阅读:
    Autofs
    markdown 基本语法
    Why Linux Doesn’t Need Defragmenting
    How to reconfigure installed dpkg package (tzdata, locales)
    weblogic性能监控
    exec
    在Oracle中查询表的大小
    hadoop主要概念的理解和学习
    ORACLE ASM中查询表空间使用情况、数据文件路径、裸设备磁盘总大小剩余大小
    linux 查看内存和cpu占用比较多的进程
  • 原文地址:https://www.cnblogs.com/waitingbar/p/6692763.html
Copyright © 2011-2022 走看看