如何重装xcode commandline tool 阏男秀 2024-04-17 1,150 阅读1分钟 有次升级macOS之后,从高版本降级,需要更新一下xcode的命令行工具,不然所使用的macOS.sdk在连接的时候可能会报错。 macOS如何重装xcode commandline tool,使用下面两条命令即可: sudo rm -rf /Library/Developer/CommandLineTools xcode-select --install