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?
source share