I am developing an app with my friend and I need to sign with his identity for testing push notification system. Here is what we did:
- I've sent my UDID to him, he added my UDID to his devices
- He created a new provisioning profile for our bundle ID, including my UDID for use with his developer certificate
- He sent the provisioning profile to me.
- I've added provisioning profile to my device and Xcode.
- He exported his developer certificate (with private key) in Keychain access and sent it to me
- I've imported his certificate successfully
- I've selected the provisioning profile that he sent at Xcode
I've tried to run the app and it said that no valid signing identities were found for that provisioning profile. Then I've tried to type the p12 file into the certificate by clicking Other (Xcode couldn't find any certificate valid for that provisioning profile by itself) but it couldn't sign:
Code Sign error: No codesigning identities found: No codesigning identities
(i.e. certificate and private key pairs) that match the provisioning profile
specified in your build settings (“tanisalim”) were found.
CodeSign error: code signing is required for product type
'Application' in SDK 'iOS 7.0'
Here is my project configuration:

How can I codesign the app with my friend's certificate?