SoFunction
Updated on 2025-03-02

mac git xcrun error active developer path error

1: Scenario:

When using git;xcode4.6 environment under mac, command line tools need to be installed, but after installing xcode5, command line tools need not be installed, and it is already integrated by default; but I installed first, xcode4.6 and then xcode5, that is, I installed two versions of xocde on mac, but when using git in terminal, an error appears as follows:

Two: Error

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

Three: Solution:

Under the terminal:

sudo xcode-select -switch /Applications//Contents/Developer

Note: The above is based on the situation, because after my xcode is installed, I changed my name to xcode5, so here is, if you don't have it, it is