Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcrun: Error: failed to exec real xcrun. (No such file or directory)

Tags:

I've upgraded OSX Lion to Mountain Lion and reinstalled the Command Line Tools (as the upgrade deleted them). From then xcrun does not work anymore. The xcode-select is set to /usr/bin, the binaries are in that directory too, but if I run xcrun with an argument (ex. xcrun gcc) it displays this:

 xcrun: Error: failed to exec real xcrun. (No such file or directory) 

I've tried setting the path again with xcode-select and reinstalled the CLT. Nothing helped.

Any suggestions how to fix this?

like image 307
McLion Avatar asked Aug 15 '12 21:08

McLion


1 Answers

I had the same problem. Originally I was doing the following for my xcode-switch:

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

However what was really needed was:

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

This fixed the problem for me. Not sure if sudo is needed.

like image 176
Evan McEwen Avatar answered Oct 07 '22 19:10

Evan McEwen