mac更新系统后Git不能用,提示missing xcrun at
来源:互联网 发布:改网络节点 编辑:程序博客网 时间:2024/04/28 05:37
今天更新了mac系统,然后就踩了这个坑。
启动AndroidStudio 右上角提示:
can't start git: /usr/bin/git probably the path to git executable is not valid . `fix it`.
点击
fix it
后 点击最上边路径地址后边的test提示:
errors while executing git -- version. exitCode=1 errors: xcrun: error : invalid active developer path(/library/developer/commandlinetools),missing xcrun at:/library/developer/commandlinetools.usr/bin/xcrun
找了一圈。。很多开发者都遇到过这问题。据说苹果每个版本的更新都会有这样的问题,原因是每次安装新的更新后,Xcode都被卸载了。。。。不扯别的说解决方案。
通过终端重新安装的Xcode命令行工具使用(其实这里安装的是Command Line Tools,Command Line
Tools是在Xcode中的一款工具)
xcode-select --install
第二种解决方案(本人没试,感兴趣的小伙伴可以尝试下)
如果不安装Xcode可以重安装git(下载地址)然后在AndroidStudio中切换到路径/usr/local/git/bin/git。
如下图所示。
哪里写的有问题,欢迎指点
2 0
- mac更新系统后Git不能用,提示missing xcrun at
- mac更新系统后Git不能用,提示missing xcrun at
- mac更新系统后Git不能用,提示missing xcrun at
- mac更新系统后Git不能用,提示missing xcrun at
- Mac 更新系统后pod不能用的问题
- git: missing xcrun
- mac OS X El Capitan xcrun: error: invalid active developer path missing xcrun at
- mac OS X El Capitan xcrun: error: invalid active developer path missing xcrun at
- 解决mac升级后出现的 xcrun: error: invalid active developer path, missing xcrun 错误
- mac升级10.11系统后pod不能用的问题
- Mac 更新系统后无法使用git
- Mac更新系统后无法使用git
- 【Mac】invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library
- Xcode 5.1 更新后插件不能用
- win10系统输入法安装后不能用
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at
- mac安装git后,在终端里运行git命令,系统提示需要安装Xcode问题解决
- iCabMobile更新后,Installous的Downloads不能用的解决方法
- 结合unity开发Kinect遇到OpenDefaultSensor failed的问题
- iOS-融云即时通讯
- redis键(key)----(二)
- 函数的声明和调用,有参函数与无参函数
- 手机网页点击链接触发手机自动拨打或保存电话的代码
- mac更新系统后Git不能用,提示missing xcrun at
- 表格,excel数据导入mysql数据库
- 将tomcat添加到windows服务中
- 傅里叶级数的通俗理解
- 扫盲——新建安卓项目的几个英文短语的意思
- 字节流和字符流的区别
- HTML、CSS、JavaScript 学习笔记
- LeetCode[404] Sum of Left Leaves
- MEM工程管理硕士的含金量与就业前景?