xcode命令行安装报错

Mac M1解决:xcode-select: error: command line tools are already installed, use “Software Update” to install updates的问题
方法一:
网友给的解决方案是

# xcode-select --install
1
但是命令行输入后报错:

# xcode-select: error: command line tools are already installed, use "Software Update" to install updates
1
​那就删除

 sudo rm -rf /Library/Developer/CommandLineTools
1
然后重新安装就可以了

xcode-select --install
xcode-select: note: install requested for command line developer tools

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐