命令行执行
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
本文介绍了解决在尝试使用xcode-select命令安装Xcode命令行工具时遇到的错误的方法。通过删除已存在的命令行工具文件夹并重新安装,可以成功解决“command line tools are already installed”的错误提示。
933





