mac 命令行里 编译 链接 出现xcrun: error: active developer path

mac cc 编译出现

xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use xcode-select to change

在命令行里输入

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

相关推荐