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

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

弹窗需要点击安装

然后等安装好就可以了

posted @ 2023-12-09 01:00  程序小工  阅读(18)  评论(0编辑  收藏  举报