Xcode 命令行工具管理

安装 Command Line Tools 版本

xcode-select --install

或者 App Store 安装 Xcode

显示当前生效的 Xcode 版本

xcode-select --print-path

切换至 Xcode App Store 版本

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

切换至 Command Line Tools 版本

sudo xcode-select -s /Library/Developer/CommandLineTools