xcode-select: error: command line tools are already installed, use “Software Update“ to install
一、问题描述
删除 XCode之后, 安装 gcc 时提示安装 Command Line Developer Tools 之后执行 xcode-select –install 出现以下报错:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
二、解决方案
rm -rf /Library/Developer/CommandLineTools xcode-select --install
如果还是报错,则加上 sudo,
sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install
————————————————
版权声明:本文为CSDN博主「Siona_xin」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_33833327/article/details/124546403