mac异常 之 xcrun: error: invalid active developer path

发布时间 2023-12-09 01:01:52作者: 程序小工
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

刚升级了系统, 结果使用了git clone之后就报错了

结局: 执行

xcode-select --install
xcode-select: note: install requested for command line developer tools

弹窗需要点击安装

然后等安装好就可以了