更新了系统后,进入到git工程目录,输入git命令,提示错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
进入Android Studio后提示:
can't start git: /usr/bin/git
probably the path to git executable is not valid . `fix it`.
又坑了,出问题了。
解决方案:
在终端输入:
xcode-select --install
据说原因是因为每次更新系统之后xcode就被卸载了,因此需要重新安装一次。特此记录,以便查阅。
参考链接:http://blog.csdn.net/qq_23089525/article/details/52789005