I am archiving a new version of an app and want to upload to appstore.
I did this on a first mac (MBP / Xcode 12GM). [Is GM relevant here ? Can I archive with a GM version ?]
At some point after asking to upload, I was noticed that I missed a Distribution certificate (I may have revealed some time ago for other reason).
I thus created a new distribution certificate and went to upload.
I ask for automatically signing and it goes on processing.
I get the iPad content info , indicating notably the keychain-access-group and team identifier.
I hit upload, and after about 1 minute in "Creating App Store Connect API analysis file…" message I get an AppStore Connect Operation Error "an error occurred when uploading to the Appstore".
I could not see the last message for long, but in a blink it seems it was authentication error.
So I tried to archive and upload from the other Mac (Xcode 11.3).
Now, I get the message that "XXXX has 2 distribution certificates, but their private key are not installed. Contact the creator to get a copy of private key."
I'm lost here.
How do I get such a copy of private key ?
Do I need to recreate completely the private key ?
How do I install it ?
Should I remove certificates and recreate ? If so, is there a risk for other published apps ? Do I have to do it on each Mac ?
Or should I do it in Xcode, creating a new distribution certificate on each Mac (or only on one ?)
I looked at this SO: https://stackoverflow.com/questions/16563364/how-can-i-add-private-key-to-the-distribution-certificate
They say:
Yes, the error you are getting means that there is not a private key on your Mac associated with the distribution certificate you are trying to use to sign the app.
There are two possible solutions, depending on whether the computer who requested the distribution certificate is available or not.
If the computer who requested the distribution certificate is available (or there is a backup of the distribution assets somewhere)
I did this on a first mac (MBP / Xcode 12GM). [Is GM relevant here ? Can I archive with a GM version ?]
At some point after asking to upload, I was noticed that I missed a Distribution certificate (I may have revealed some time ago for other reason).
I thus created a new distribution certificate and went to upload.
I ask for automatically signing and it goes on processing.
I get the iPad content info , indicating notably the keychain-access-group and team identifier.
I hit upload, and after about 1 minute in "Creating App Store Connect API analysis file…" message I get an AppStore Connect Operation Error "an error occurred when uploading to the Appstore".
I could not see the last message for long, but in a blink it seems it was authentication error.
So I tried to archive and upload from the other Mac (Xcode 11.3).
Now, I get the message that "XXXX has 2 distribution certificates, but their private key are not installed. Contact the creator to get a copy of private key."
I'm lost here.
How do I get such a copy of private key ?
Do I need to recreate completely the private key ?
How do I install it ?
Should I remove certificates and recreate ? If so, is there a risk for other published apps ? Do I have to do it on each Mac ?
Or should I do it in Xcode, creating a new distribution certificate on each Mac (or only on one ?)
I looked at this SO: https://stackoverflow.com/questions/16563364/how-can-i-add-private-key-to-the-distribution-certificate
They say:
Yes, the error you are getting means that there is not a private key on your Mac associated with the distribution certificate you are trying to use to sign the app.
There are two possible solutions, depending on whether the computer who requested the distribution certificate is available or not.
If the computer who requested the distribution certificate is available (or there is a backup of the distribution assets somewhere)
But at step 3, I do not see Teams section in Organizer (may be it changed location since this SO thread ?)From the computer where the distribution asset was generated, open Xcode.
Click on Window, Organizer.
Expand the Teams section.
Select your team, select the certificate of "iOS Distribution" type, click Export and follow the instructions.
Save the exported file and go to your computer.
Repeat steps 1-3.
Click Import and select the file you exported before.