unable to build chain to self-signed root for signer “Apple Development: *** (***)“

Unable to build chain to self-signed root for signer "Apple Development: *** (***)"
originally ran fine, but the real machine couldn't run anymore. Checking the certificate and everything was normal.
I found some information.

Reason analysis:
The key point lies in this sentence: unable to build chain to self-signed root

I guess it must be related to the certificate, and the problem lies in the root, that is, there is a problem with the root certificate.

After searching, it was found that Apple developers have a root certificate: Apple Worldwide Developer Relations Certification Authority
(this certificate on my computer disappeared inexplicably. I remember seeing it before but I don’t know when it disappeared). The
abbreviation is: AppleWWDRCA

The root certificate has either expired, been placed in the wrong location, or has the wrong number.

The correct development root certificate: it should be in the keychain -> system, there is only one copy

Solution:
First delete the old AppleWWDRCA from the keychain

Download the latest version of Apple developer root certificate from the Internet: AppleWWDRCA download

Import into keychain -> system (note: cannot be placed in login),

as the picture shows:
Insert image description here

Then compile and run again on the real machine to debug normally.

Guess you like

Origin blog.csdn.net/iOS_MingXing/article/details/132832311