安装指令
bash
xcode-select --install

安装

完成安装

验证
bash
$ xcode-select -p
/Library/Developer/CommandLineTools