Why do I get instruments - "Target failed to run"? Why do I get instruments - "Target failed to run"? ios ios

Why do I get instruments - "Target failed to run"?


I got the same issue when I switched to XCode 4 and I solved it by setting my release code-signing profile to my development profile instead of the app store profile that was previously set. Indeed, Xcode 4 profiles your app using the release build by default.


To answer my own question:

I have two applications installed on my device with the same name resp. the same Bundle display name: Doublemill. Since they have different bundle identifiers, the debugger can deal with that, however Instruments seems to be confused.


Hey.
There can also be some other issues.

Provisioning Profile.
From Apple documentation:For your protection, the instrument does not allow you to process any application that is notcode-signed with your provisioning profile. This includes any copy that has been downloaded from the iTunes App Store.

Device.
Instrumetns UIAutomation doesn't work on iPhone 3G, only 3Gs, 4.

Sadly support for instruments is bad. Apple doesn't seem to put much attention to it.