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

后端 未结 9 1926
轻奢々
轻奢々 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:44

    In my case, I had uninstalled Xcode and then issues with git cli started. I solved the problem running the following commands:

    $ sudo xcode-select -r
    $ sudo xcode-select --switch /Library/Developer/CommandLineTools
    

    and then validating new path with:

    $ sudo xcode-select -p
    

    Hope this helps!

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

    Use this sudo xcode-select -switch /

    This should solve the problem.

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

    How about what the error suggests? Did you try that?

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

    That should do the trick.

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