【踩坑】Xcrun报错:invalid active

前言

Xcrun报错:xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

原因

  • Xcode卸载了,所以xcode-select指向有问题

解决问题

  • 修改xcode-select指向
1
2
sudo xcode-select -r
sudo xcode-select --switch /Library/Developer/CommandLineTools

重新查看指向(可选)

1
sudo xcode-select -p

完成

参考文献

CSDN——weixin_30721077