This repository has been archived by the owner. It is now read-only.

xcrun invalid active developer path on Mavericks #23500

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

Comments

7 participants
@dankohn

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

This comment has been minimized.

Show comment
Hide comment
@jpravetz

jpravetz Oct 23, 2013

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

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

This comment has been minimized.

Show comment
Hide comment
@annieliu

annieliu Oct 23, 2013

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.

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

This comment has been minimized.

Show comment
Hide comment
@annieliu

annieliu Oct 23, 2013

Solved after update the Command Line Tool

Solved after update the Command Line Tool

@napcae

This comment has been minimized.

Show comment
Hide comment
@napcae

napcae Oct 24, 2013

Contributor

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.

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

This comment has been minimized.

Show comment
Hide comment
@annieliu

annieliu Oct 24, 2013

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).

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

This comment has been minimized.

Show comment
Hide comment
@mistydemeo

mistydemeo Oct 24, 2013

Contributor

Is the dreaded xcrun bug fixed then?

Contributor

mistydemeo commented Oct 24, 2013

Is the dreaded xcrun bug fixed then?

@napcae

This comment has been minimized.

Show comment
Hide comment
@napcae

napcae Oct 24, 2013

Contributor

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.

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

This comment has been minimized.

Show comment
Hide comment
@dankohn

dankohn Oct 24, 2013

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

dankohn commented Oct 24, 2013

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

@dankohn dankohn closed this Oct 24, 2013

@afshinm

This comment has been minimized.

Show comment
Hide comment
@afshinm

afshinm Oct 29, 2013

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

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

Any idea?

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

This comment has been minimized.

Show comment
Hide comment
@napcae

napcae Oct 29, 2013

Contributor

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

Contributor

napcae commented Oct 29, 2013

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

@afshinm

This comment has been minimized.

Show comment
Hide comment
@afshinm

afshinm Oct 29, 2013

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

afshinm commented Oct 29, 2013

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

@napcae

This comment has been minimized.

Show comment
Hide comment
@napcae

napcae Oct 29, 2013

Contributor

and brew doctor?

Contributor

napcae commented Oct 29, 2013

and brew doctor?

@annieliu

This comment has been minimized.

Show comment
Hide comment
@annieliu

annieliu Oct 29, 2013

Upgrade CLT first before you change the directory

Upgrade CLT first before you change the directory

@afshinm

This comment has been minimized.

Show comment
Hide comment
@afshinm

afshinm 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!

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

This comment has been minimized.

Show comment
Hide comment
@liahosanjum

liahosanjum Jan 11, 2015

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

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

@afshinm

This comment has been minimized.

Show comment
Hide comment

@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.