Xcode 12.5 - Unable to build chain to self-signed root for signer

Error: Unable to build chain to self-signed root for signer

If you are utilizing our macOS executors and building on Xcode 12.5+, but not using Fastlane match for your signing, you may encounter an error that looks like:

Warning: unable to build chain to self-signed root for signer "Apple Development: XXXXXXX"

By default, we have the proper certificates on the image, however, if you aren't using the setup_circle_ci task in your Fastfile and Fastlane match then they won't be properly applied to your build.

Solution

You have two options for resolving this issue. The first would be to follow the above documentation and implement Fastlane match.

If the above isn't an option, then you can update your Fastfile to include the following:

import_certificate(
certificate_path: "AppleWWDRCAG3.cer",
keychain_path: "/Users/distiller/Library/Keychains/fastlane_tmp_keychain-db",
keychain_password: ""
)

Then download the certificate from the following:

https://developer.apple.com/support/expiration/

Then include it in the project's root. Afterward, it can be imported into the temp Fastlane keychain.

Was this article helpful?
4 out of 16 found this helpful

Comments

0 comments

Article is closed for comments.