码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2018-01-07 20:18:38      阅读:311      评论:0      收藏:0      [点我收藏+]

标签:uil   not   path   test   studio   key   tis   net   evel   

今天更新了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

标签:uil   not   path   test   studio   key   tis   net   evel   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!