Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

xcrun invalid active developer path on Mavericks #23500

Closed
dankohn opened this issue Oct 23, 2013 · 16 comments
Closed

xcrun invalid active developer path on Mavericks #23500

dankohn opened this issue Oct 23, 2013 · 16 comments

Comments

@dankohn
Copy link

dankohn commented Oct 23, 2013

Dans-iMac:~/Documents/dev/spock (master)$ brew install psql
xcrun: error: invalid active developer path (/Library/Developer), missing xcrun at: /Library/Developer/usr/bin/xcrun
Warning: A newer Command Line Tools release is available
Update them from Software Update in the App Store.
Error: No available formula for psql 
Dans-iMac:~/Documents/dev/spock (master)$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew.git
HEAD: 9dd7d2cbaf6718d453aefb63977e4552e096c166
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.9-x86_64
xcrun: error: invalid active developer path (/Library/Developer), missing xcrun at: /Library/Developer/usr/bin/xcrun
CLT: 5.0.1.0.1.1382131676
LLVM-GCC: N/A
xcrun: error: invalid active developer path (/Library/Developer), missing xcrun at: /Library/Developer/usr/bin/xcrun
Clang: N/A
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Dans-iMac:~/Documents/dev/spock (master)$ which xcrun
/usr/bin/xcrun

This is after doing xcode-select --install, and when I still got the message about newer command line tools, manually downloading the Maverick command line tools.

Help greatly appreciated.

@jpravetz
Copy link

Get same problem running git, also after running and installing xcode, installing Maverick command line tools.
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/xcrun
The /usr/bin folder doesn't exist.
Resolved via
http://stackoverflow.com/questions/9621706/how-can-i-resolve-error-no-developer-directory-found-at-developer

@annieliu
Copy link

Same issue: xcrun: error: invalid active developer path (/usr/bin), missing xcrun at: /usr/bin/usr/bin/xcrun
I have tried to change the developer path, but it always reports: xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer' for whatever path I have tried.

@annieliu
Copy link

Solved after update the Command Line Tool

@napcae
Copy link
Contributor

napcae commented Oct 24, 2013

Manually downloading the tools didn't fix the problem for me. My error message was xcrun: error: invalid active developer path (/usr/bin), missing xcrun at: /usr/bin/usr/bin/xcrun and xcrun was at /usr/bin/scrun. So I typed sudo xcode-select -switch / and now it's working again.

@annieliu
Copy link

Yes. Same to me

On 10/24/13, 12:47 AM, napcae wrote:

Manually downloading the tools didn't fix the problem for me. My error
message was |xcrun: error: invalid active developer path (/usr/bin),
missing xcrun at: /usr/bin/usr/bin/xcrun| and xcrun was at
|/usr/bin/scrun|. So I typed |sudo xcode-select -switch /| and now it's
working again.


Reply to this email directly or view it on GitHub
#23500 (comment).

@mistydemeo
Copy link
Member

Is the dreaded xcrun bug fixed then?

@napcae
Copy link
Contributor

napcae commented Oct 24, 2013

I hope so.

On 24 Oct 2013, at 06:52, Misty De Meo notifications@github.com wrote:

Is the dreaded xcrun bug fixed then?


Reply to this email directly or view it on GitHub.

@dankohn
Copy link
Author

dankohn commented Oct 24, 2013

Yes, sudo xcode-select -switch / is the fix. Thanks!

@dankohn dankohn closed this as completed Oct 24, 2013
@afshinm
Copy link

afshinm commented Oct 29, 2013

Same issue here. After running sudo xcode-select -switch / I get this error:

xcode-select: error: invalid developer directory '/'

Any idea?

@napcae
Copy link
Contributor

napcae commented Oct 29, 2013

have you installed the command line tools? what does brew doctor gives you?

@afshinm
Copy link

afshinm commented Oct 29, 2013

Yes I have command line tools. I have this issue right after upgrading to Mavericks.

@napcae
Copy link
Contributor

napcae commented Oct 29, 2013

and brew doctor?

@annieliu
Copy link

Upgrade CLT first before you change the directory

@afshinm
Copy link

afshinm commented Oct 29, 2013

Ops! Problem solved. I just run the brew doctor and it says:

Warning: Your Xcode is configured with an invalid path.
You should change it to the correct path:
sudo xcode-select -switch /Developer/Applications/Xcode.app

and after running the command, problem solved. Thanks guys!

@liahosanjum
Copy link

Thanks alot afshinm, The problem is solved using
sudo xcode-select -switch /Applications/Xcode.app

@afshinm
Copy link

afshinm commented Jan 11, 2015

@liahosanjum nice!

@Homebrew Homebrew locked and limited conversation to collaborators Jan 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants