Ios – Phonegap Build Error: no iPhone Developer/Distribution identity found on your certificate

build-processcordovaiossigning

Does anybody have experience build app with PhoneGap's Build Service?

I followed the steps and created a .p12 file and the provisioning profile file. When I uploaded the keys, it does not build my iOS App giving the following error/warning:

no iPhone Developer/Distribution identity found on your certificate

The steps I followed are:

1) Using Keychain Access: Keychain Access -> Certificate Assistant
-> Request Certificate from a Certificate Authority

2) Provided the email address which I used to register on Apple
Developer Program

3) I am not sure if the 'Common Name' matters, but I used a custom
name

4) 2048 bits RSA key pair value

5) From the iOS Development Portal, followed the wizard "Launch
Assistant, to generate the provisioning profile.

6) Downloaded the developer certificate and provisioning profile

7) Exported the private key created above by giving a password to
generate the .p12 file

8) Used the .p12 file & provisioning profile created in last two steps
in the 'signing' section of PhoneGap's build service.

Has anybody faced a similar problem. Am I doing something wrong?

Best Answer

From my experience I have found that this is actually caused when you inter mix the public/private keys, certificates and provisioning profiles from multiple developer accounts.

So, to eliminate the problem I deleted the public & private key for the account which I wanted to use in PhoneGap build and even deleted the certificate; then followed the steps mentioned in my question and it worked like charm.

In short, give it a scratch start and generate the files again...