解决更新macOS 10.12使用git出错的问题
2016-09-21 本文已影响96人
许宏川
问题
今早手贱更新了10.12,Android Studio的git出现这样的问题:
Can't start Git:/usr/bin/git
![](https://img.haomeiwen.com/i323464/a4dc63fc6f6bf12c.png)
![](https://img.haomeiwen.com/i323464/c812696ed8045d10.png)
命令行的git出现这样的问题:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
![](https://img.haomeiwen.com/i323464/72aa4e553c779131.png)
解决方法
重新安装Xcode Command Line Tools。
xcode-select --install