I have created a Distribution certificate, & a Distribution Provisioning Profile for Ad-Hoc Distribution/ AppStore submission. I have made all the necessary changes in Info.plist, Entitlements file, Targets -> Build of the project. I’m getting an error. i’ve attached screen shot of this error.
This error seems to be occurring coz I’ve no profiles currently matching for iphone distribution
.
It displays ‘profile doesn’t match any valid certificate/ private key pair in default keychain’.
I’ve checked the certificate & its valid.
Can there be some issue with the private key present in the keychain access. If so the case, please suggest a solution.
If you are unable to get the private key you are going to have to re-generate one. This will not affect in any way whatsoever already published applications, but will invalidate your current distribution certificate and provisioning profiles.
So, the steps you need to take are:
You can now use it to sign your application.
This would be an excellent time for you to backup your newly generated certificate. In Keychain Access go to Keys, right click your newly generated private key and export it as a p12 file. Store it somewhere safe.