Question

This question was asked before, but unresolved here.

I have tried the solution here, but it doesn't solve the issue.

I get this error:

xcrun: error: active developer path ("/Applications/Xcode 2.app/Contents/Developer") does not exist, use xcode-select to change

The active developer path should NOT say "Xcode 2.app", but instead "Xcode.app".

My question is: How can I change the active path to say "Xcode.app"?

I already tried the following:

$> xcode-select -switch /Applications/Xcode.app/Contents/Developer
$> xcode-select -print-path 
/Applications/Xcode.app/Contents/Developer

I have tried reinstalling Xcode, but the problem persists.

Was it helpful?

Solution 6

Doing a hard reset on my computer fixed my issue.

I agree that the answer below, the one with the most upvotes, is helpful to most people who encounter this problem.

OTHER TIPS

Have you tried to execute the switch command as root with a sudo command ?

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

There is one more option without terminal, we can change active developer path through Xcode.

Launch Xcode, Go to Xcode -> Preferences -> Locations and in Command Line tools will list down all the installed Xcode list. From the drop down you can select any Xcode for active developer path.

Using this selection, you can set any Xcode (if you have multiple installed Xcode’s in your machine and you want change default one) set as a default active developer path.

Happy Coding :)

Hovanter, There is a possibility that you have multiple Xcode versions in your Application folder. Also you might have updated the name of your Xcode.

Search your 'Xcode name' from Application folder and then enter the command below : sudo xcode-select -switch /Applications/"Xcode name.app"/Contents/Developer

It worked for me. How about you?

It Occurs to me when i renamed my Xcode application to xcode6.4

You have to give new path by replacing Xcode to renamed Xcode application

Example:- sudo xcode-select -switch /Applications/Xcode6.4.app/Contents/Developer

If xcode is yet not installed, then this error occurs. So, Install xcode then go for checkout.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top