Ios build issue Certificate doesn't match profile

  • 11
  • Problem
  • Updated 4 years ago
  • Not a Problem
I face an IOS build issue error message is
Error - Certificate doesn't match profile: The default keychain doesn't have an identity matching .
But i include the match keychain and mobile provision for the app.
Can anyone help me to solve this issue , thanks in advance.
Photo of Vishnu R

Vishnu R

  • 3 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 11
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Try the following workaround:
http://stackoverflow.com/a/9617794
Photo of Vishnu R

Vishnu R

  • 3 Posts
  • 0 Reply Likes
Thanks amir for your help , But amir we get the build with out errors till 18 december , yesterday(19 dec) onwards showing such an error,

Error - Certificate doesn't match profile: The default keychain doesn't have an identity matching

so please anyone help me to solve this issue.

Thanks
Photo of Sergio Sterzo

Sergio Sterzo

  • 1 Post
  • 0 Reply Likes
+1
same error for me :(
build was working fine till 18 dec

any news?
Photo of Robert Leidl

Robert Leidl

  • 3 Posts
  • 1 Reply Like
+1 same for me
This was working until last week. None of my apps compile anymore.
Photo of Robert Leidl

Robert Leidl

  • 3 Posts
  • 1 Reply Like
Why is this marked as solved? Is it working for everybody?
Photo of Robert Leidl

Robert Leidl

  • 3 Posts
  • 1 Reply Like
Now working for me.

Ok, for future reference... I had to download from developer.apple.com the same certificate and profile. I imported the certificate into my keychain and exported as a .p12 file. I deleted the profile off phonegap.com and re-uploaded it and it worked!

Not sure what changed, but I'm happy it works for me.
Photo of Matt N

Matt N

  • 22 Posts
  • 0 Reply Likes
Hi Robert! That worked for me too in the end. It must be something related to our "old" p12 certificate. I re-exported that and sure enough, it works now.
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Everyone

This could be cause by any one of the following:

1- Certificate expired
2- .mobileprovision doesn't include proper certificate
3- Mixed between Development provisioning + Distribution certificate or vice-verse.
4- Server-cache fault (probably). Delete existing key from Build then try re-upload.

Hope that helps
Photo of Luican Adrian

Luican Adrian

  • 17 Posts
  • 2 Reply Likes
i have the same problem , worked fine until december. I tried today to update an app but faild to build. I deleleted everything and i did the same thing ( like in this tutorial : https://www.youtube.com/watch?v=f3Y1a... ) but isn't working anymore.
Photo of contactmatts

contactmatts

  • 1 Post
  • 0 Reply Likes
Our iOS application has been building successfully on build.phonegap for the last six months. Our last successful build was 12/16/2014. I went to build the application yesterday (12/30), and I'm getting the following error:

Error - Certificate doesn't match profile: The default keychain doesn't have an identity matching

I've tried deleting the key, re-uploading the key, re-uploading the application, etc, none of which has solved the problem.

Just to point out again that _nothing_ has changed with my .p12/.mobileprovision file. Does someone have any insight on this, or a workaround to get past this problem that is occurring on build.phonegap?
Photo of Matt N

Matt N

  • 22 Posts
  • 0 Reply Likes
I'm in the same situation - were you able to resolve this by chance?
Photo of Matt N

Matt N

  • 22 Posts
  • 0 Reply Likes
Hi there - I figured it out. Something changed with apple or PG Build, how they handle the signing with our P12 certs. Try exporting those again and retry - it worked for me.
Photo of Matt N

Matt N

  • 22 Posts
  • 0 Reply Likes
I'm in the same situation as contactmatts above. Receiving the same error for both a brand new app, and two other apps that could be built successfully a few weeks ago but now won't! I'm am 100% confident that nothing has changed with my p12 or mobile provision files. Amir, can you assist please?
Photo of Luican Adrian

Luican Adrian

  • 17 Posts
  • 2 Reply Likes
i have the same problem , worked fine until december. I tried today to update an app but faild to build. I deleleted everything and i did the same thing ( like in this tutorial : https://www.youtube.com/watch?v=f3Y1a... ) but isn't working anymore.
Photo of Billy Collingham

Billy Collingham

  • 1 Post
  • 0 Reply Likes
I am having the same problem was working ok before Christmas , I am now getting
error
Error - Certificate doesn't match profile: The default keychain doesn't have an identity matching
Photo of Luican Adrian

Luican Adrian

  • 17 Posts
  • 2 Reply Likes
I had the same error but i solved with this steps ..i hope it works for you too :

1.I updated my Mac at latest version
2.I deleted the previous production certificate
3.I deleted the previous distribution profile
4.Create a new production certificate
5.Create a new a distribution profile using certificate at 4)
6.Export the .p12 file of certificate 4)
7.Upload the key again on phonegap

I followed these steps and worked for me.
Photo of Matt N

Matt N

  • 22 Posts
  • 0 Reply Likes
Hi Luican - would you mind resolving your stackoverflow question when you get a chance? :) http://stackoverflow.com/questions/27...
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Official Response
Solution by Lucian Adrian

I had the same error but i solved with this steps ..i hope it works for you too :

1.I updated my Mac at latest version
2.I deleted the previous production certificate
3.I deleted the previous distribution profile
4.Create a new production certificate
5.Create a new a distribution profile using certificate at 4)
6.Export the .p12 file of certificate 4)
7.Upload the key again on phonegap
I followed these steps and worked for me.
Photo of bonnie collingham

bonnie collingham

  • 17 Posts
  • 1 Reply Like
i tried this but got the following error Error - Unable to import Certificate
Photo of Luican Adrian

Luican Adrian

  • 17 Posts
  • 2 Reply Likes
well try again to create the distribution profile using the production certificate created at nr4. Export the .p12 file of production certificate at nr.4 ..an then upload it again ..it must work.

If doesent work try to follow those steps again :

1.I updated my Mac at latest version
2.I deleted the previous production certificate
3.I deleted the previous distribution profile
4.Create a new production certificate
5.Create a new a distribution profile using certificate at 4)
6.Export the .p12 file of certificate 4)
7.Upload the key again on phonegap

Good luck
Photo of bonnie collingham

bonnie collingham

  • 17 Posts
  • 1 Reply Like
ok that worked thanks
Photo of Naude de Wit

Naude de Wit

  • 27 Posts
  • 0 Reply Likes
What does 1)update mac have to do with anything?
Photo of Matt N

Matt N

  • 22 Posts
  • 0 Reply Likes
Naude - Something happened/was updated either through OSX and/or Adobe within the past couple of months that invalidated our certificates, as you can see from everyone having the same issue. We don't know for sure what it was, but we do know that updating your Mac helps.
Photo of Naude de Wit

Naude de Wit

  • 27 Posts
  • 0 Reply Likes
Thanks, I'm just in a hurry and don't want to update for nothing. Updating as we speak...

Confirmed! This works
Photo of Luican Adrian

Luican Adrian

  • 17 Posts
  • 2 Reply Likes
i'm glad it worked !
Photo of Daniel Smith

Daniel Smith

  • 1 Post
  • 0 Reply Likes
I have this issue and have re created the profile and p12 files. My question is, how can l delete the erroneous profiles from phone gap build?
Photo of Luican Adrian

Luican Adrian

  • 17 Posts
  • 2 Reply Likes
After you log in Press the profile icon upper right corner : EDIT ACCOUNT > SINGING KEY and press the trashcan icon on the profile you want to delete it.
Photo of patrick clancy

patrick clancy

  • 5 Posts
  • 0 Reply Likes
This reply was created from a merged topic originally titled Certificate doesn't match profile error?.

How do I troubleshoot and correct this phonegap build error?

Error - Certificate doesn't match profile: The default keychain doesn't have an identity matching - You can fix this here
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
This error also happens if you use the same certificate Signing Key for dev and distribution certificates.
See "Your Keychain Contains Duplicate Code Signing Identities" on apple support link below:
https://developer.apple.com/library/i...
Photo of Eric

Eric

  • 23 Posts
  • 0 Reply Likes
I am also getting this error. The certificate was working just fine. I went to do a rebuild and I got this error. Did something change on your servers to cause this? How do i fix it?
Photo of Luican Adrian

Luican Adrian

  • 17 Posts
  • 2 Reply Likes
1.I updated my Mac at latest version
2.I deleted the previous production certificate
3.I deleted the previous distribution profile
4.Create a new production certificate
5.Create a new a distribution profile using certificate at 4)
6.Export the .p12 file of certificate 4)
7.Upload the key again on phonegap
Photo of Eric

Eric

  • 23 Posts
  • 0 Reply Likes
grrr...why do they make this process so difficult what a waste of time...
Photo of Eric

Eric

  • 23 Posts
  • 0 Reply Likes
So what happened that caused the cert to become invalid?
Photo of Eric

Eric

  • 23 Posts
  • 0 Reply Likes
That did fix it BTW...thx ;-)
Photo of Gregory Gardner

Gregory Gardner

  • 2 Posts
  • 0 Reply Likes
Hi I have the same issue (trying to get pushwoosh pgb working but I don't receive any pushes)... my default ios developer account with the team provisioning profile is working in pgb but not when I try with the push enabled certificate and provisioning profile: "Certificate doesn't match profile: The default keychain doesn't have an identity matching" .. I'v tried everything as stated above but nothing solves it... this drives me nuts :D ... any advice?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Gregory,
it is apparent that since you tried everything on this page, that you have a different problem. Please start a new thread, with

What you are trying to do. Be specific, not general.
What have you tried. (link to this page)
What did not work as expected.
What level of experience you have with mobile development. THIS HELPS ALOT.

NOTE: you should also post your config.xml and be prepared to post more code - including your HTML and Javascript.

TIA
Jesse
Photo of Alpine Tech Solutions

Alpine Tech Solutions

  • 28 Posts
  • 2 Reply Likes
Error - Certificate doesn't match profile: The default keychain doesn't have an identity matching....

I became frustrated by this error. It turned out I did not get the new certificate imported into Keychain properly. It said the certificate was not trusted. I reimported it by dragging and dropping the certificate file into login section of Keychain. It then said it was trusted and I re-exported it. After that it worked.