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

こ雲淡風輕ζ 提交于 2019-12-02 14:24:58
devB78

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

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


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

sudo xcode-select -switch /

Use this sudo xcode-select -switch /

This should solve the problem.

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

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

That should do the trick.

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

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!