解决更新Xcode以后使用Git报错的问题

更新Xcode以后使用Git报错:

[email protected] SecondApp$ git pull

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

解决办法:

第一步: 输入下面的命令

bixiaopeng@bixiaopengtekiMacBook-Pro SecondApp$ sudo xcodebuild -license
Password:

第二步: 同意Xcode条款

输入密码后要求你必须同意下面两个Xcode条款.

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‘

按照提示点击Enter键来查看条款.

pple Inc.

Xcode and Apple SDKs Agreement

PLEASE SCROLL DOWN AND READ ALL OF THE FOLLOWING TERMS AND CONDITIONS CAREFULLY BEFORE USING THE APPLE SOFTWARE OR APPLE SERVICES.  THIS IS A LEGAL AGREEMENT BETWEEN YOU AND APPLE.  IF YOU AGREE TO BE BOUND BY ALL OF THE TERMS AND CONDITIONS, CLICK THE “AGREE” BUTTON.  BY CLICKING “AGREE” OR BY DOWNLOADING, USING OR COPYING ANY PART OF THIS APPLE SOFTWARE OR USING ANY PART OF THE APPLE SERVICES, YOU ARE AGREEING ON YOUR OW
... 巴拉巴拉一大堆...

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来同意条款.

agree

You can view the license agreements in Xcode‘s About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf

然后就可以正常使用git了.

[email protected]-Pro SecondApp$ git pull
Already up-to-date.

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-10-26 13:28:44

解决更新Xcode以后使用Git报错的问题的相关文章

git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).

Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 解决办法一:保留本地的更改,中止合并->重新合并->重新拉取 $:git merge --abort $:git reset --merge $:git pull 解决办法二:舍弃本地代码,远端版本覆盖本地版本(慎重) $:git fetch --all $:git reset --hard origin/ma

解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).

Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 2017年02月22日 20:38:28 阅读数:19178 Git fetch和git pull的区别: 都可以从远程获取最新版本到本地 1.Git fetch:只是从远程获取最新版本到本地,不会merge(合并) $:git fetch origin master //从远程的origin的master主分支

iOS 用CocoaPods做iOS程序的依赖管理(基于Alcatraz),以及升级Mac 10.11后Xcode的CocoaPods插件报错

创建Podfile文件 1.点击红框, Creat Podfile 2.接着弹出Podfile文件 3.Edit Profile, 下面以添加融云SDK为例: 融云SDK Podfile文件添加如下内容: Podfile Edited 1 也可以这样编辑: 屏幕快照 2015-10-27 上午9.04.47.png "7.0"表示引入的第三方库所支持的最低版本 target "CocoaPodsDemo"是你的目标应用项目 do ... end 是你的作用域 Ins

Xcode 真机调试报错:This application's application-identifier entitleme

    This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed 解决方法:1.Xcode-Window->Devices2.选中你的设备,在右边的installed Apps中删除这个App3.重新编绎即可 Xcode 真机调试报错:This

git报错:'fatal:remote origin already exists'怎么处理?附上git常用操作以及说明。

git添加远程库的时候有可能出现如下的错误, 怎么解决? 只要两步: 1.先删除 $ git remote rm origin 2.再次执行添加就可以了. ----------------------------------------------git常用操作------------------------------------------------ 说明,以下整理来自廖雪峰大神的<git教程>. 各位童鞋要下载git但是网速不给力的,可以从这里下载:https://pan.baidu.

git报错:&#39;fatal:remote origin already exists

git报错:'fatal:remote origin already exists'怎么处理?附上git常用操作以及说明. git添加远程库的时候有可能出现如下的错误, 怎么解决? 只要两步: 1.先删除 1 $ git remote rm origin 2.再次执行添加就可以了. ----------------------------------------------git常用操作------------------------------------------------ 说明,以下整

解决window7 x64位Anaconda启动报错:AttributeError: &#39;_NamespacePath&#39; object has no attribute &#39;sort&#39;

最近论文需要用到python做数据分析,python语法简单,但是Windows下安装第三方包恶心的要命,statsmodels用pip死活安装不上,网上查了说包相互依赖windows下的pip不能下载全,还有好几个其他的统计包也是如此,整晕了算. 看网上有些python大牛推荐Anaconda,可以解决包的问题,于是卸载本地的python,从官网上下了个Anconda玩玩,结果遇到新问题. 问题如下: An unexpected error has occurred. Please consi

解决SpDevelop在Windows7导出Chm报错的办法

把C:\Program Files (x86)\HTML Help Workshop下的文件夹以及文件夹里面的东西复制粘贴到C:\Program Files\路径下. 解决SpDevelop在Windows7导出Chm报错的办法,布布扣,bubuko.com

解决Azure Stack App Service部署报错一例

解决Azure Stack App Service部署报错一例 Azure Stack是微软新一代的云基础架构,是Windows Server 2016.Azure Pack和Azure Service Fabric的组合,能够将Azure的IaaS和PaaS功能带到客户自己的数据中心里,微软希望所有用户都能体验到该项服务,近期Azure Stack发布了GA版本,小弟有幸对其进行部署测,和之前版本相比GA版本提供了GUI的部署界面,同时在稳定性上也大大有所提升!但小弟在部署App Servic