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

MAC
ITerm 编译出现
xcrun: error: active developer path (“/Volumes/Xcode.app/Contents/Developer”) does not exist, use xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select)
在命令行里输入
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
即可

你可能感兴趣的:(github,xcode,git,iterm)