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.