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

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

提交回复
热议问题