xcode-select: error: command line tools are already installed, use “Software Update“ to install

命令行执行

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

猜你喜欢

转载自blog.csdn.net/chen__an/article/details/107465247