OS X El Capitan / macOS Sierra / macOS High Sierra
我刚刚从优胜美地升级到El Capitan(并复制了从El Capitan升级到Sierra的问题),并且当我尝试在终端中键入例如git status
,出现以下错误:
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
我没有安装Xcode,从来没有。 任何人都有解决方案?
在这里找到解决问题的方法。
xcode-select --install
这将提示安装必要的命令行工具。
如果您在xcode-select --install
命令中遇到问题, 例如,我不断收到网络问题超时,然后尝试在developercode.apple.com/downloads(命令行工具OS X 10.11)下载dmg for Xcode 7.1
我尝试了解决方案xcode-select --install
但它不帮助我,我从塞拉利昂更新到高发生这种情况,我的解决方案:
sudo xcode-select --reset
链接地址: http://www.djcxy.com/p/81913.html