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:
- Created 4 years ago
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
🎉 Downloading and installing Developer Relations Intermediate Certificate solved it for me!