Xcode is not detecting distribution certificate and private key in my keychain

I had to wipe my hard drive and forgot to back up my distribution certificate. I made a new distribution certificate with a corresponding csr and downloaded then installed it. I then made a new provisional profile connected to the correct app id and distribution certificate. Then I downloaded and installed the new provisional profile. Xcode says “No signing certificate found”. When I go to build settings and code signing identity, I see a list of certificates from other projects but not the one I just made. The desired signing certificate and it’s private key are in my keychain, which is a problem I can’t find anywhere on the internet.

The solution to “No signing certificate found” always involves getting one into one’s keychain. Well, I have it in my keychain but Xcode is not detecting it.

How do I fix this?

Replies

Same problem, what now?

the same issue, have revoked older ones and generated a fresh certificates couple of times and the keychain shows them in the list but Xcode v11.3 not detecting any of them; such a disappointment.

And if you go for update the code it says 9-10GB of empty space needed and first download OS 11+ :(

Once you have generated the cert, downloaded cert, added the cert to profile and downloaded profile, make sure to restart xcode & keychain to reflect downloaded changes. That seemed to fix it for me.