The installation directory of Apple's IDE, Xcode, moved from /Developer to /Applications starting version 4.3.1. It caused some glitches for tools, such as xcodebuild, if invoked as a command-line utility.
To point it to the new installation base, use
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/
Verify the change with