question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

errSecInternalComponent

See original GitHub issue
  • Version: 20.44.4
  • Target: MAC

Hey guys I’m having some difficulties with code signing my app.

I added my cert to key chain. I changed trust fields to Always Trust. I used command 'electron-builder -m` It created .app file no problem. Then it gives me this error msg:

Error: Command failed: codesign --sign <identityHash> --force /path/to/my.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
Warning: unable to build chain to self-signed root for signer "<identityName>"
/path/to/my.app.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework: errSecInternalComponent

I think it has something to do with signing frameworks I use in my app, but I don’t know how to fix this… Can you help?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

8reactions
camlincommented, Jun 10, 2020

It fails because CI is typically does via SSH connections, meaning there is no GUI, meaning the Keychain is still locked… So when the module tries to access the key it fails with that errSecInternalComponent error (which is the big clue to this).

You need your script/CI to unlock the keychain via the command: security unlock-keychain -p {account-password} login.keychain

For more info see: https://stackoverflow.com/questions/24023639/xcode-command-usr-bin-codesign-failed-with-exit-code-1-errsecinternalcomponen

But I do feel it would help if the electron-builder docs had a gotcha about this…

HTH.

2reactions
marckohlbruggecommented, Nov 11, 2021

🎉 Downloading and installing Developer Relations Intermediate Certificate solved it for me!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode Command /usr/bin/codesign failed with exit code 1
In case it helps someone else, I encountered an errSecInternalComponent error with codesign because I was running it over an ssh session to...
Read more >
errSecInternalComponent Command Co… - Apple Developer
My app was working properly running on my iPhone. However, it stoped and I'm getting the following main error: Code Block language. /Users/ ......
Read more >
I am getting this kind of error in Xcode - WebViewGold
I am getting this kind of error in Xcode: “errSecInternalComponent Command CodeSign failed with a nonzero exit code” or “Command /usr/bin/ ...
Read more >
errSecInternalComponent Command CodeSign failed with a ...
iOS : errSecInternalComponent Command CodeSign failed with a nonzero exit code 65 [ Beautify Your Computer ...
Read more >
How to Fix iOS Application Code Signing Error? - Medium
errSecInternalComponent. Command /usr/bin/codesign failed with exit code 1. We can start to solutions. You should know those common ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found