A valid provisioning profile for this executable was not found. Can't add built app to iPhone

I am getting “A valid provisioning profile for this executable was not found” error when dragging my built app to the Xcode Organizer.

This is what I got from the builder:

Your application cannot be uploaded to the App Store until it passes Apple’s validation tests, though you may install it directly to provisioned devices.

Executable=/Users/komirad/Desktop/Bounce.app/Bounce  
codesign\_wrapper-0.7.10: using Apple CA for profile evaluation  
Disallowed signer  
AssertMacros: cms\_verify(signature, code\_directory, certificates), file: codesign\_wrapper.c, line: 778  
AssertMacros: verify\_code\_signatures(code\_signatures, certificates), file: codesign\_wrapper.c, line: 946  
 - (null)  

I can also see the Provisioning profile listed in the Provisioning Profile Panel under my iPhone Device. [import]uid: 75783 topic_id: 13240 reply_id: 313240[/import]

Ok now i am getting this error from the builder:

Failed to extract requirements data: 1  
/Users/komirad/Desktop/Bounce.app: invalid signature (code or signature have been modified)  
failed to extract entitlements: 1  
AssertMacros: entitlements\_requested, At least need an application-identifier entitlements file: codesign\_wrapper.c, line: 880  
 - (null)  
  
warning: Unable to extract codesigning entitlements from your application. Please make sure Bounce is a valid Mach executable that's properly codesigned. (-19050)  
/Users/komirad/Desktop/Bounce.app/Bounce: invalid signature (code or signature have been modified)  
 - (null)  

First time doing this :smiley: [import]uid: 75783 topic_id: 13240 reply_id: 48551[/import]

When you look in Xcode under provisioning profiles and select the one for your app, do you see any warnings? (Red or yellow icons?)

Secondly, do you have your certificates set up in Keychain Access?

The first time can be a bit of a pain - so can later times, truth be told. I had to redo my certificates today after a similar error. (They’d expired.)

Let me know and I’ll see what advice I can share :slight_smile: [import]uid: 52491 topic_id: 13240 reply_id: 48558[/import]

oops double post [import]uid: 75783 topic_id: 13240 reply_id: 48582[/import]

Nope, no warnings

http://i.imgur.com/VizUX.png

Is it different for OS Lion? [import]uid: 75783 topic_id: 13240 reply_id: 48587[/import]

Ah Lion - there are still some issues with Lion I believe; http://developer.anscamobile.com/forum/2011/07/13/will-corona-work-os-x-lion

Are you using a stable version of Xcode? Or a BETA?

It might be worth running through this just to make sure you did every step PERFECTLY - the first time around it’s easy to miss something; http://developer.anscamobile.com/forum/2011/07/29/certificate-provisioning-app-submission-and-other-newbie-nightmares-tutorial

Let me know if that helps :slight_smile:

Peach [import]uid: 52491 topic_id: 13240 reply_id: 48753[/import]

Although I still get a warning, I managed to run it on the iPhone.

Deleted all the certs and went through helper on the apple dev program. [import]uid: 75783 topic_id: 13240 reply_id: 48764[/import]