Issue multiple iOS distribution certificates

We have a distribution certificate that expires in November. To be able to subscribe to our current applications, a colleague went ahead and created a second certificate.

Unfortunately, after downloading this certificate, I was not able to sign applications with an old or new certificate when using the terminal. Every time I try to sign an application in the terminal, and both certificates are present in the key chain, I get an error:

iPhone Distribution: XXXX: ambiguous (matches "iPhone Distribution: XXXX and iPhone Distribution: XXXX in /Users/applicatonsigning/Library/Keychains/login.keychain)

Also, if I delete the cert / private key and just try to use the old or new certificate separately, I get the following error:

 XYZ.app: object file format unrecognized, invalid, or unsuitable. 

So far, I canceled and reassigned my Apple Developer Cert, and also tried to create a profile on my MAC just to sign up. In addition, according to my key chain, both certificates are valid and have associated private keys.

Unfortunately, I am at a complete and complete loss of what to do next. I need to start putting off applications soon, but I can’t.

Any thoughts on how I can sign my application?

+4
source share
1 answer

Since you have tried all possible things, I suggest you try a clean install.

(1) Go to your provisioning portal and revoke all of your distribution certificates. (Do not worry, this will not affect everything that is already in the App Store).

(2) In the window of your Xcode Organizer, update and remove all distribution certificates from the Organizer window ONLY. (And not from the initialization portal.)

(3) In your "Keychain Access", delete / delete all distribution certificates.

(4) Create a new distribution certificate in accordance with the instructions provided on the provisioning portal and submit it.

(5) Modify all distribution profiles in the provisioning portal and ensure that they use the new distribution certificate.

(6) Download the new distribution certificate and install it so that it is present in Keychain Access. (At no time should you have more than one distribution certificate on your Keychain Access)

(7) Update Xcode Organizer by logging into the developer portal through Xcode.

(8) Install the new distribution certificate in Xcode, if it is not already.

(9) Use the new distribution profile and clean it. That should work.

+2
source

Source: https://habr.com/ru/post/1433671/


All Articles