卸载 Xcode

Command Line Tools

安装

xcode-select --install

或运行任何 /usr/bin 底下的 stub (例如 git

卸载

rm -rf (xcode-select -p)

清理安装记录

  1. plutil 删除 /Library/Receipts/InstallHistory.plist 里对应的内容

  2. 在 Recovery 中或关闭 SIP 后执行

    rm -rf /Library/Apple/System/Library/Receipts/com.apple.pkg.CLTools*