解决big sur在安装xcode后启动终端会卡几秒的问题

1,134次阅读
没有评论

之前开发者工具一直使用的是CommandLineTools,后来安装了xcode后,被替换成了xcode,结果每次开机第一次运行终端都会卡在xcodebuild上好几秒,且直接运行vscode会提示错误

  1. 终端输入xcode-select -p查看开发者工具当前路径,此时显示为xcode开发者工具的路径
xcode-select -p
/Applications/Xcode.app/Contents/Developer
  1. 安装CommandLineTools,如已安装可跳过
xcode-select --install
  1. 将开发者工具由xcode改为CommandLineTools
sudo xcode-select -switch /Library/Developer/CommandLineTools

现在第一次启动终端不会再卡几秒钟,问题解决!

正文完