I just upgraded from Snow Leopard to Mountain Lion, and I'm trying to get a project to build using an older version of Xcode, 3.2.6. I ran sudo xcode-select --switch /Developer
but now when I try to build my project with xcodebuild
, I get
xcrun: Error: failed to exec real xcrun. (No such file or directory)
It builds just fine from within the IDE. How can I get this to build from the CLI again?
I got it working. I had to specify the full path /Developer/usr/bin/xcodebuild
in my build script.