+1  A: 

This error suggests that there is a problem with either your certificate or your private key.

If you open Keychain Access (in Applications/Utilities), do you see 'iPhone Developer: XXXXXXXXXX' in your certificates? If not, you need to download it from the Program Portal.

When you created the certificate 'iPhone Developer: XXXXXXXXXX', did you generate a certificate signing request on the same computer that you are now using to compile? If not, the private key that goes with your certificate may not be installed on the computer; whoever generated the signing request will need to send it to you, and you will need to add it to your keychain.

Tom
i need the .p12 and .cert certificate that matches with the provisioning profile... again one more thing is it necessary to change bundle identity with the identity in provisioning profile...thanx for help i will try it out thatx for replying in such a short time..
abhiTouchmagic
For distribution, you do need to set the Bundle Identifier in your Target Info to match the App ID in the provisioning profile. That's step 6 under "Building your Application with Xcode for Distribution" in these instructions: http://developer.apple.com/iphone/manage/distribution/index.action. I don't think you need to do that for development builds, though.
Tom
thanx i am done with it i have created alll certificates again....
abhiTouchmagic
+1  A: 

This is one of the larger SO threads on this topic:

http://stackoverflow.com/questions/400894/xcode-iphone-app-codesign-error

sylvanaar
thanx but it is not what i am looking for/ the settibgs suggested in that topici already implement it...
abhiTouchmagic