Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run / install xcodebuild?

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?

like image 915
Rahul Iyer Avatar asked Mar 24 '12 03:03

Rahul Iyer


People also ask

Where is Xcodebuild running?

Thanks for your reply. It seems that xcodebuild is located within /Applications/Xcode. app/Contents/Developer/usr/bin.

What is Xcodebuild command?

xcodebuild is a command-line tool that offers the ability to build and test your Xcode projects.

What is the Xcrun command?

xcrun provides a means to locate or invoke coexistence- and platform-aware developer tools from the command-line, without requiring users to modify makefiles or otherwise take inconvenient measures to support multiple Xcode toolchains.


1 Answers

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 
like image 73
Kurt Revis Avatar answered Sep 24 '22 17:09

Kurt Revis