/Applications/Xcode*.app/etc/paths.d/100-rvictl/Library/Apple/usr/Library/Developer/PrivateFrameworks~/Library/Developerxcode-select --install
或运行任何 /usr/bin 底下的 stub (例如 git)
rm -rf (xcode-select -p)
清理安装记录:
用 plutil 删除 /Library/Receipts/InstallHistory.plist 里对应的内容
在 Recovery 中或关闭 SIP 后执行
rm -rf /Library/Apple/System/Library/Receipts/com.apple.pkg.CLTools*