A valid provisioning profile for this executable was not found...

I have followed the instructions in the DevBuildGuide.pdf and created an ad-hoc provisioning profile at Apple, downloaded them and they show up in my Keychain Access Tool. The profile I created is listed in the XCode Organizer in the Provisioning tab, and the Developer profile Tab. In the profile tab, it shows an iPhone Developer and iPhone Distribution certs. It also indicates that the iPhone I have sync’d is valid for this profile (which I expect to be the case).

When I drop the app (the Fishies sample) on the Applications part of the XCode Organizer, it stop at “Verifying…” and then a dialog comes up with the text listed in the subject line.
Anyone have any ideas? Bug or Operator error?
This is XCode 3.2.2.

[import]uid: 5597 topic_id: 802 reply_id: 300802[/import]

Unfortunately, Apple has made things pretty confusing in order to make things more secure. We’ve tried to make this a lot easier, but there are still several things that often get missed. Here are some common things to double check:

* In the iTunes/Apple Portal, make sure your device’s UDID is listed as one of the devices for the particular provision profile. This is a *separate* step from adding your device under the global “Devices” list. For each profile, you must choose a subset of the available devices that you list under this global devices list.
* If you’ve updated the provisioning profile (with the same name as an older profile), you will have to explicitly add it to your phone. Easy way to do that is to drag and drop the file from the Finder into the “Provisioning” portion of the “Summary” window in the XCode organizer.
* In the Corona build dialog, make sure you are choosing the correct “signing identity”. The name of the provision profile file should appear next to the signing identity.

Hope this helps!
[import]uid: 26 topic_id: 802 reply_id: 1781[/import]

always the certifiacte is the problem.

if the profile is worng, you can’t deploy it to device.

if the certificate is wrong, you can deploy profile but the verifcation of signature will fail

http://androidyou.blogspot.com/2010/12/xcode-valid-provisioning-profile-for.html [import]uid: 13191 topic_id: 802 reply_id: 14968[/import]