下载安装Xcode会自动安装所有需要的工具
手动终端下载
xcode-select --install
// 若以前安装过Xcode,可能仍然无法使用命令行工具,此时需要手动更改命令行工具地址。
sudo xcode-select --switch /Library/Developer/CommandLineTools
xcode-select --install
// 若以前安装过Xcode,可能仍然无法使用命令行工具,此时需要手动更改命令行工具地址。
sudo xcode-select --switch /Library/Developer/CommandLineTools
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://www.fangshirui.cn/index.php/archives/1022/
评论已关闭