首页 > 系统服务 > 详细

mac更新系统后Git不能用,提示missing xcrun at

时间:2018-01-07 18:48:23      阅读:267      评论:0      收藏:0      [点我收藏+]

今天更新了mac系统,然后就踩了这个坑。

启动AndroidStudio 右上角提示:

can‘t start git: /usr/bin/git 
probably the path to git executable is not valid . `fix it`.
  • 1
  • 2

点击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
  • 1
  • 2
  • 3

找了一圈。。很多开发者都遇到过这问题。据说苹果每个版本的更新都会有这样的问题,原因是每次安装新的更新后,Xcode都被卸载了。。。。不扯别的说解决方案。


通过终端重新安装的Xcode命令行工具使用(其实这里安装的是Command Line Tools,Command Line 
Tools是在Xcode中的一款工具)

xcode-select --install

mac更新系统后Git不能用,提示missing xcrun at

原文:https://www.cnblogs.com/mayanze/p/8228922.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!