mac git xcrun error active developer path error

  • 2020-05-06 11:43:38
  • OfStack

One: situation:

Use git under mac; command line tools is required for xcode4.6, but after xcode5 is installed, command line tools is not required, it is integrated by default. However, I installed xcode4.6 and then installed xcode5. That is, I installed two versions of xocde on mac, but when using git under the terminal, the following error occurred:

Two: error

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

Three: solution:

Under terminal:


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

Note: xcode5.app above, depending on the situation, because my xcode has changed its name to xcode5 after I installed it, so xcodee5.app if you don't have a copy, xcode.app


Related articles: