Unable to run tests because of No certificate matching...

I have a macOS target that is being built in XCode 8.3.3. I have recently moved my development over onto a "new" iMac (5k 2015). I can build and run the app just fine, but if I try to run the unit tests I receive a "build fails" message, with errors attached to the ...Tests and ...UITests folder. In both cases it states

Dependency Analysis Error:

No certificate matching 'Developer ID Application: <my name and some long char string> Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning.

Now I AM using automatic provisioning. Turning it off and attempting to set things up "by hand" leads to messy (and non-functioning) situations.


Does it make a difference that when I try to view my certificates that I appear to have TWO certificates under Mac Development, one recently created, apparently when I first started to use XCode on my new machine (it has the machine name in parentheses after my name)?


This is very, very frustrating.

Now under Xcode>Preferences Accounts Manage Certificates... I was able to create a third MacOS Development certificate. It and one other are labeled "<machine name>". THe other (oldest one) is labled "Untitled", though if it had a one year expiration it is still valid. I decide to decertify the certificate. I go online and try to manage the certificates from the developer site. I decertify the oldest one. I go look on my keychain, and I can see three Certificates still, BUT, in Xcode preferences now the oldest certificate has an "X" on it and the status "Missing Private Key". I go back to my keychain, find what I think is the appropriate Certificate and now I see only two certificates, both with blank status. I Still get "Build Failed" when I try to run one of the unit tests. (Building the actual app seems to run things just fine.) The detailed error diagnostic is the same "No certificate matching... stuff)/


FWIW when Managing Certificates I see that all my other certificates (MacOS Delivery, et al. and my iOS certificates) are greyed out. Does this mean that the next time I try to do an iOS project I'm going to be screwed?


Can someone get me out of Certificate ****?

Hi After updating the certification in app store.

When i am running the azure pipeline i am getting with below error Check dependencies

Code Signing Error: No certificate matching 'iPhone Distribution: ALD Automotive XXXXX' found: Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning.

Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 15.2'

Please help on this issue

Unable to run tests because of No certificate matching...
 
 
Q