xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer

193 阅读1分钟

xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer“) does not exist

卸载了Xcode或者升级Xcode,Clion 中的编译器 gcc 突然不好用了,然后尝试安装 gcc 时遇到了如下问题: xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

sudo xcode-select -r 
sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools 
xcode-select -p

原文地址:blog.csdn.net/qq_33833327…