错误记录: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

  • 删除命令

$sudo rm -rf /Library/Developer/CommandLineTools

  • 重新安装

$sudo xcode-select --install

等待xcode安装需要一点时间,安装完成点击确定即可!

你可能感兴趣的:(Mac使用技巧,xcode-select:,error:,command,line,t,Mac安装xcode,安装code报错)