After upgrading to Xcode 4.3 my “make distribution” script for PhotoLinker failed because it couldn’t get the command line tool xcodebuild to work. To fix this, you need to do two things.
1. In the Xcode preferences under ‘Download’, install the command line tools.
2. In the terminal, run,
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
and that will point everything in the right direction.