xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun ...

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun ...
image.png

解决方法:

打开终端输入

xcode-select --install

回车后,系统弹出下载xcode,点击确认,下载完成后即可。(实际上不是下载xcode,可能下载xcode有关插件,下载时长约1分钟)

出现这个错误原因猜想可能是因为之前安装过xcode卸载后出现的。

上一篇:Easy Redmine 中导出 PDF 文件


下一篇:Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://127.0.0.1:8004/login". 20:22:46.254 127.0.0.1/:1 Refused to execu