Code signing fails with “unable to build chain to self-signed root for signer "(null)"” and errSecInternalComponent for Developer ID Application on macOS

Hello Apple Developer Support Community,

I am encountering a persistent issue while trying to code sign my macOS application (PromptVault.app) using a valid Developer ID Application certificate. The signing process fails with the following warning and error for every native .so file inside the app bundle:

`Warning: unable to build chain to self-signed root for signer "(null)"
<file-path>: errSecInternalComponent`

What I have tried so far:

Verified that my Developer ID Application certificate and the associated private key exist correctly in the login keychain.

Confirmed that the intermediate certificate "Apple Worldwide Developer Relations - G6" is installed and valid in the System keychain.

Added Terminal to Full Disk Access in Security & Privacy to ensure signing tools have required permissions.

Executed security set-key-partition-list to explicitly allow code signing tools to access the private key.

Reinstalled both developer and Apple intermediate certificates.

Used codesign to individually sign .so files and then sign the entire bundle.

Ensured macOS and Xcode Command Line Tools are up to date.

Created a clean Python virtual environment and rebuilt all dependencies.

Tested code signing in multiple ways and with verbose logging.

Current status:

Despite all these efforts, the same warning and error persist during the signing process of every .so file. This prevents successful code signing and notarization, blocking distribution.

Request for assistance:

Could anyone confirm if my certificate and keychain setup sounds correct?

Are there known issues or extra steps necessary to properly build the trust chain for Developer ID certificates on macOS 15.6.1 (Sequoia)?

Any suggestions for resolving the errSecInternalComponent during signing native libraries?

Guidance on ensuring the entire certificates chain is trusted and usable by codesign tools?

I can provide debug logs, screenshots of my keychain and security settings, or any other diagnostic information if needed.

Thanks in advance for your help!

Answered by DTS Engineer in 855290022

I have info about this issue in Resolving errSecInternalComponent errors during code signing, and theFixing an untrusted code signing certificate post that it links to. Specifically, the second post lists three common causes of this error.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I have info about this issue in Resolving errSecInternalComponent errors during code signing, and theFixing an untrusted code signing certificate post that it links to. Specifically, the second post lists three common causes of this error.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Code signing fails with “unable to build chain to self-signed root for signer "(null)"” and errSecInternalComponent for Developer ID Application on macOS
 
 
Q