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
I faced similar problem in XCode4.5 and while working on my application XCode suddenly crashed.
After searching for hours, I found out one of my file in my application got deleted when xcode crashed.
I restored the file from Trash and issue got resolved.
This is not a technical answer, but a "user error" answer that probably does not apply to your situation. It happened to me and my search lead me to this Q&A to no avail --- until I realized my mistake. I had a filter set in the Issue Navigator that did not match anything that was being reported as an issue. When I cleared the filter, the issues were displayed.
Notice the symptoms were the same as you were asking about and I have no idea when I set that filter (it must be inherited from the other navigation views) as I would not have needed any filtering on the short list.
Are you using "Underscore" and "Space", etc. for Bundle identifier?
Are you using .m instead of .h in one of your imports? #import "Photo.h"
The first thing I'd try is to clean everything (menu Product / Clean) and the build it again. You might have already tried it.
You'll find (and you can watch during the build) the complete build output in the Log Navigator. That's the right most icon of the small icons just below the Run and Build buttons.
The build (and debug) log files are found in the directory /Users/you/Library/Developer/XCode/DerviedData/YourProject-abcdefg/Logs/Build (and ../Debug respectively).
I don't think there's any output for the installation of your app on the device.
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.
If you changed bundle identifier and cleaned project, but it also didn't work, try to empty /Users/YOUR_USERNAME/Library/Developer/Xcode/DerivedData directory.
It works for me.