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.
Have you tried to execute the switch command as root with a sudo command ?
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer