在命令行输入以下两条命令: sudo rm -rf $(xcode-select -print-path) xcode-select --install 🔗 参考链接:https://www.cnblogs.com/zhennann/p/12272058.html