I have an app built on Xcode 4.2, iOS 5, deployment target iOS 4.2, building for debug, with valid identity/provisioning profile (they work under Xcode 3), phone (actually an iPod Touch 4.2.1) plugged in and acknowledged by Organizer, showing the provisioning profile.
The app runs fine under the simulator, but when I compile/run for the Touch it says "Build Succeeded" and then immediately afterwards "Finished running XXX on iPod Touch" appears in the build progress box. Neither the Xcode console nor the Touch's console show any messages. No device logs either. The application doesn't appear as installed on the device. Breakpoint at entry to applicationDidBecomeActive is never hit.
Any idea what's wrong? I've searched Xcode 4 high and low for any sign of a build log that might contain hidden build/deployment error messages, but can't find anything.
I did find this thread, but mucking with the "Architecture" stuff produced no change.
Aha!! There are "Architecture" entries under both "PROJECT" and "TARGETS" and I was mucking with "PROJECT". Setting the "Architecture" under "TARGETS" caused it to start working. (YOY do they have both, when one is ignored, and YOY don't they produce some sort of error message in this situation?)