How can I resolve "Error: No developer directory found at /Developer"?

Giordano Scalzo picture Giordano Scalzo · Mar 8, 2012 · Viewed 52.2k times · Source

I just upgraded XCode to 4.3.1. I'm using a script to build (and then deploy through Testflight) my app. But I now receive this error:

Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path.

I've no /Developer dir in my machine: how can I fix it?

Answer

Jim picture Jim · Mar 8, 2012

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