解决安装xcode后git使用报错的问题
2017-04-11 11:26
411 查看
一、现象:
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$
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$
相关文章推荐
- mac安装git后,在终端里运行git命令,系统提示需要安装Xcode问题解决
- 解决更新Xcode以后使用Git报错的问题
- xcode插件安装完之后无法使用问题解决
- xcode插件安装完之后无法使用问题解决
- 解决Xcode6.4安装插件后插件不能使用的问题
- 【转】解决XCode安装插件后插件不能使用的问题
- 解决XCode安装插件后插件不能使用的问题
- Android Studio 1.01 使用 Git 总结及问题解决(需要在本地安装git )
- mac安装git后,在终端里运行git命令,系统提示需要安装Xcode问题解决
- Ubuntu7.04使用totem-xine,安装libxine1-ffmpeg后,rm文件播放无声问题的解决办法
- VMware中安装Ubuntu后鼠标失灵,及滚轮无法使用等问题解决
- Ubuntu7.04使用totem-xine,安装libxine1-ffmpeg后,rm文件播放无声问题的解决办法
- 使用ps为exchange 2007重新分配证书,以解决默认安装时证书与服务器fqdn不匹配问题。
- DevExpressVCL 傻瓜安装 使用后问题和解决方法
- Ubuntu7.04使用totem-xine,安装libxine1-ffmpeg后,rm文件播放无声问题的解决办法
- 在安装有VS2008beta2版本的机子上使用vs2005进行部署出现问题的解决方法
- AppLocale使用后安装程序乱码问题的解决
- Ubuntu7.04使用totem-xine,安装libxine1-ffmpeg后,rm文件播放无声问题的解决办法
- discuz安装使用问题与解决办法
- Ubuntu7.04使用totem-xine,安装libxine1-ffmpeg后,rm文件播放无声问题的解决办法