Mojave最新解决方案:
终端执行:

xcode-select --install
#完成后执行
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / 

若执行 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

相关文章:

  • 2021-12-04
  • 2021-04-22
  • 2021-07-22
  • 2022-12-23
  • 2021-06-17
  • 2021-10-07
  • 2021-08-28
猜你喜欢
  • 2021-11-17
  • 2021-11-16
  • 2021-11-25
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-11-10
相关资源
相似解决方案