mm24
mm24

Reputation: 9586

XCode unable to recognise the distribution profile present in my keychain

In a nutshell:


EDIT: When I try to use the iOS mobile distribution profile that I generated I don't see many options for the code signing identies. This is how it looks like:

enter image description here


I have downloaded the team distribution profile on my computer from the apple developer member centre. This is the way it looks in my keychain:

enter image description here

However when I try to sign my code for ad hoc distribution I cannot find the distribution certificate in the code signing identities tab.

I manage to build the product archive (for local ad hoc distribution, e.g. TestFlight) but when I try to export it (or submit it to AppStore) I get a message saying that I already have a code signing identity and that I need to download it. More details on this in this question that I asked yesterday.

Today I am trying a different approach and I decided to go to the Account->Preferences and try to click on the "+" button to add a new iOS Distribution profile. This is what I get as response:

enter image description here

enter image description here

Unfortunately it seems that XCode is unable to recognise the iOS Distribution profile that I have installed in my keychain (see beginning of this question) whilst unable to recreate one.

How can I fix this without messing up the certificates/apps of my team members?

Upvotes: 1

Views: 167

Answers (3)

MultiColourPixel
MultiColourPixel

Reputation: 1232

By looking at your Keychain screenshot, I can see that the Certificate lacks the little disclosure triangle next to it. What this indicates is that although you have the distribution certificate, you lack the private signing key. Without it you will not be able to sign the app and it is why you're stuck in this loop.

If you were the person that created the CSR (Certificate Signing Request) when setting up the Distribution Certificate, you should have the private key already in your Keychain - in which instance it may be the case that you are using a couple of different Keychains (e.g. I have the login keychain as well as my Development keychain), the private key is actually in a different keychain to where your distribution certificate is.
In this instance you will simply need to move either your Key or Certificate into the correct keychain for it all to marry up.

Alternatively, if you were not the person that created the Distribution Certificate in the first place, you will need to have the original user export the Key for you using Keychain or by having them export the Developer profile using Xcode.

Upvotes: 1

xxiBgixx
xxiBgixx

Reputation: 11

Pls check if your keychain is missing the private key associated with distribution certificate.

Here is a similar thread that you may wish to take a look at : link

good luck!

Upvotes: 0

Gaurav Patel
Gaurav Patel

Reputation: 957

Install both valid certificates in your system (Distribution and Developer)

Upvotes: 1

Related Questions