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

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
就可以解决里

引用链接:http://blog.sina.com.cn/s/blog_4af978980102ef2w.html

你可能感兴趣的:(mac 命令行里 编译 链接 出现xcrun: error: active developer&nbs)