Using Xcode 4.3’s Command Line Tools

I recently upgraded to 4.3 which has done away with the /Developer folder, instead opting for an XCode.app application in /Applications. Naturally, the command line tools such as xcodebuild stopped working so my automated build server broke.

There is quite a simple fix, you simply need to change xcode’s root folder to the Developer folder inside XCode’s app bundle:

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

UPDATE: You can also install the developer tools from Xcode’s Download’s preferences, thanks @joeldev.

UPDATE 2: Wow, looks like the developer tools are available and work independently to Xcode - this is a perfect solution for the build server which doesn’t need Xcode fully installed. More info here thanks @JasonAyala.

Cheers,
Andrew 

  1. durul reblogged this from preppeller
  2. preppeller posted this