xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer”) does not exist

后端 未结 9 1925
轻奢々
轻奢々 2020-12-07 07:50

I\'m having xcode issues when I try to use brew and git:

xcrun: error: active developer path (\"/Applications/Xcode.app/Contents/Developer\") does not

相关标签:
9条回答
  • 2020-12-07 08:26

    For me it helps to install Xcode CLI xcode-select --install after uninstalling XCode (I don't develop for the OSx or iOS)

    Then I could successfully build downloaded source with make

    0 讨论(0)
  • 2020-12-07 08:27

    Try error suggestion :

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

    And Then test Git Executable Path.

    0 讨论(0)
  • 2020-12-07 08:30

    I had the same problem and had to remove completely Developer tools, and reinstall:

    $ rm -rf /Library/Developer/CommandLineTools
    $ xcode-select --install
    

    Tip: because Xcode had been improperly uninstalled, I had to manually (re)move the Xcode app, too:

    $ mv /Applications/Xcode.app/ /Applications/Xcode.app.bak
    
    0 讨论(0)
  • 2020-12-07 08:38

    Mostly this error occurs when you have installed a newer version of xcode. And the command line tools are yet to be initialized.

    To resolve this: Go under Xcode Preferences > Locations (tab) > And the bottom options is Command Line Tools. Please select the Xcode version for tools.

    Example (For Xcode 10.0 (10A255) ): Go under Xcode Preferences > Locations (tab) > And the bottom options is Command Line Tools. Select Xcode 10.0 (10A255).

    For more details please see the attached image. Hope it helps.

    -- Thanks


    0 讨论(0)
  • 2020-12-07 08:40

    I have faced the same issue as I have uninstalled the XCode abruptly, running the below command (from Terminal) helped me to resolve this.

    sudo xcode-select -switch /
    
    0 讨论(0)
  • 2020-12-07 08:42

    I tried that and it didn't work but I found the answer. I just had to reset the developer's path:

    $ sudo xcode-select --reset
    

    Now everything is normal

    0 讨论(0)
提交回复
热议问题