MacBookPro10.15报错如下:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
问题出现的可能原因:卸载xcode导致,或者更新系统导致;
解决办法:
先使用:
xcode-select --install
如果使用这个指令报以下错误:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
就直接去苹果官网开发者工具下载Command Line Tools For Xcode
;建议选择稳定版本;
去官网地址:https://developer.apple.com/download/more/搜索;
下载安装完成之后,应该就不会出现之前的报错了!