我将我的 os x 从 mavericks 升级到 EL Capitan,当我想在 android studio 中使用 git 时,我收到了这个错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
谁有解决办法?
最佳答案
查看此解决方案:
将 Mac OS X 更新为“El Capitan”后,我的本地 git 命令不再有效。使用git命令时,命令行返回:
xcrun:错误:无效的事件开发人员路径 (/Library/Developer/CommandLineTools),缺少 xcrun 位于:/Library/Developer/CommandLineTools/usr/bin/xcrun
解决此问题的方法是使用此命令重新安装命令行开发人员工具:
xcode-select --install
关于git - 无法在 OS X El Capitan 中启动 Git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33383715/