Xcode – How to run / install xcodebuild

xcodexcode4xcode4.3xcodebuild

If I try to run xcodebuild from the command line, I receive the message:

error: can't exec '/Developer/usr/bin/xcodebuild' (No such file or directory)

But, xcrun appears to work.

Does this mean xcodebuild is not installed? I installed the command line tools in Xcode 4.3.1
Is there something I need to do to get this to work?

Best Answer

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