The app works fine in the simulator, builds and runs.
When I attach my device (iPhone 3GS running iOS 4.3) and target the iPhone, the result is \"Build failed\" with
This happened to me after deleting an unused target. It seems that Xcode put a space in my remaining target's CFBundleIdentifier (com.company.etc). I had to edit Info.plist with an external text editor to remove it and then it worked fine.