We have a Distribution certificate that is set to expire in Nov. In order to get a jump on signing our current apps a colleague went ahead and created a second certificate.
Unfortunately, since downloading this cert I have been unable to sign applications with the old or the new certificate when using Terminal. Every time I attempt to sign an app in terminal and both certs are present in the keychain I get the error:
iPhone Distribution: XXXX: ambiguous (matches "iPhone Distribution: XXXX and iPhone Distribution: XXXX in /Users/applicatonsigning/Library/Keychains/login.keychain)
Additionally, If I delete a cert/private key and just attempt to use the old or new cert separately I get the following error:
XYZ.app: object file format unrecognized, invalid, or unsuitable.
Thus, far I have revoked and reassigned my Apple Developer Cert as well as tried creating a profile on my MAC to only sign with. Additionally, according to my key-chain both certs are valid and have associated private keys.
Unfortunately, I am at a complete and total loss on what to do next. I have need to start resigning apps soon but, I can't.
Any thoughts on how I can sign my application?