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.

"Unable to build chain to self-signed root for signer" on macOS 11.2.2! help!

See original GitHub issue
  • Version: 22.10.5
  • Electron Version: 11.2.3
  • Electron Type (current, beta, nightly): previous version
  • Target: macOS 11.2.2
nostlan % sudo electron-builder -m
  • electron-builder  version=22.10.5 os=20.3.0
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • rebuilding native dependencies  dependencies=robotjs@0.6.0, sharp@0.27.1, usb@1.6.4 platform=darwin arch=x64
  • install prebuilt binary  name=sharp version=0.27.1 platform=darwin arch=x64
  • install prebuilt binary  name=robotjs version=0.6.0 platform=darwin arch=x64
  • build native dependency from sources  name=robotjs
                                          version=0.6.0
                                          platform=darwin
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.6
    prebuild-install WARN install prebuilt binaries enforced with --force!
    prebuild-install WARN install prebuilt binaries may be out of date!
    prebuild-install info looking for cached prebuild @ /Users/qashto/.npm/_prebuilds/e64806-robotjs-v0.6.0-electron-v85-darwin-x64.tar.gz
    prebuild-install http request GET https://github.com/octalmage/robotjs/releases/download/v0.6.0/robotjs-v0.6.0-electron-v85-darwin-x64.tar.gz
    prebuild-install http 404 https://github.com/octalmage/robotjs/releases/download/v0.6.0/robotjs-v0.6.0-electron-v85-darwin-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=11.2.3 runtime=electron arch=x64 libc= platform=darwin)
    
  • install prebuilt binary  name=usb version=1.6.4 platform=darwin arch=x64
  • build native dependency from sources  name=sharp
                                          version=0.27.1
                                          platform=darwin
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.6
    prebuild-install WARN install prebuilt binaries enforced with --force!
    prebuild-install WARN install prebuilt binaries may be out of date!
    prebuild-install info looking for cached prebuild @ /Users/qashto/.npm/_prebuilds/d19ae8-sharp-v0.27.1-electron-v85-darwin-x64.tar.gz
    prebuild-install http request GET https://github.com/lovell/sharp/releases/download/v0.27.1/sharp-v0.27.1-electron-v85-darwin-x64.tar.gz
    prebuild-install http 404 https://github.com/lovell/sharp/releases/download/v0.27.1/sharp-v0.27.1-electron-v85-darwin-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=11.2.3 runtime=electron arch=x64 libc= platform=darwin)
    
  • build native dependency from sources  name=usb
                                          version=1.6.4
                                          platform=darwin
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.6
    prebuild-install WARN install prebuilt binaries enforced with --force!
    prebuild-install WARN install prebuilt binaries may be out of date!
    prebuild-install info looking for cached prebuild @ /Users/qashto/.npm/_prebuilds/f6cf1d-usb-v1.6.4-electron-v85-darwin-x64.tar.gz
    prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.4/usb-v1.6.4-electron-v85-darwin-x64.tar.gz
    prebuild-install http 404 https://github.com/tessel/node-usb/releases/download/v1.6.4/usb-v1.6.4-electron-v85-darwin-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=11.2.3 runtime=electron arch=x64 libc= platform=darwin)
    
  • packaging       platform=darwin arch=x64 electron=11.2.3 appOutDir=dist/mac
  • Unpacking electron zip  zipPath=undefined
  • signing         file=dist/mac/nostlan.app identityName=Apple Development: qashto@gmail.com (REDACTED) identityHash=[REDACTED] provisioningProfile=none
  ⨯ Command failed: codesign --sign REDACTED --force --timestamp --options runtime --entitlements /usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/templates/entitlements.mac.plist /Users/qashto/dev/apps/nostlan/dist/mac/nostlan.app/Contents/Resources/app.asar.unpacked/node_modules/sharp/vendor/8.10.5/lib/libvips-cpp.42.dylib
Warning: unable to build chain to self-signed root for signer "Apple Development: qashto@gmail.com (REDACTED)"
/Users/qashto/dev/apps/nostlan/dist/mac/nostlan.app/Contents/Resources/app.asar.unpacked/node_modules/sharp/vendor/8.10.5/lib/libvips-cpp.42.dylib: errSecInternalComponent
stackTrace=

Error: Command failed: codesign --sign REDACTED --force --timestamp --options runtime --entitlements /usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/templates/entitlements.mac.plist /Users/qashto/dev/apps/nostlan/dist/mac/nostlan.app/Contents/Resources/app.asar.unpacked/node_modules/sharp/vendor/8.10.5/lib/libvips-cpp.42.dylib

Warning: unable to build chain to self-signed root for signer "Apple Development: qashto@gmail.com (READACTED)"

/Users/qashto/dev/apps/nostlan/dist/mac/nostlan.app/Contents/Resources/app.asar.unpacked/node_modules/sharp/vendor/8.10.5/lib/libvips-cpp.42.dylib: errSecInternalComponent
                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
at ChildProcess.exithandler (node:child_process:326:12)
at ChildProcess.emit (node:events:378:20)
at maybeClose (node:internal/child_process:1067:16)
at Socket.<anonymous> (node:internal/child_process:453:11)
at Socket.emit (node:events:378:20)
at Pipe.<anonymous> (node:net:665:12)

From previous event:
at processImmediate (node:internal/timers:464:21)

From previous event:

at MacPackager.signApp (/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/src/macPackager.ts:392:27)
at MacPackager.doSignAfterPack (/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/src/platformPackager.ts:270:16)
at MacPackager.doPack (/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/src/platformPackager.ts:255:7)
at MacPackager.pack (/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/src/macPackager.ts:167:7)
at Packager.doBuild (/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/src/packager.ts:434:9)
at executeFinally (/usr/local/lib/node_modules/electron-builder/node_modules/builder-util/src/promise.ts:12:14)
at Packager._build (/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/src/packager.ts:369:31)
at Packager.build (/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/src/packager.ts:333:12)
at executeFinally (/usr/local/lib/node_modules/electron-builder/node_modules/builder-util/src/promise.ts:12:14)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
Mr777Nickcommented, Apr 6, 2021

Try to move the folder into desktop or any other non-admin folder. Then run the command without using sudo.

0reactions
quinton-ashleycommented, Dec 9, 2021

Update to the latest version of electron and electron-builder.

On Thu, Dec 9, 2021 at 01:50 Careteen @.***> wrote:

@quinton-ashley https://github.com/quinton-ashley I have same issues . What did you do to fix it?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/electron-userland/electron-builder/issues/5684#issuecomment-989564690, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEY2RQ6ZYXLDVV7N4LKK5KTUQBGRVANCNFSM4YXEPIPQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: unable to build chain to … | Apple Developer Forums
Just set it to "Use System Defaults" and close it. · You'll get a pop up. Type in your password to update settings....
Read more >
unable to build chain to self-signed root for signer" warning in ...
Open Keychain Access · Select login, and click Certificates · Double click Apple Worldwide Developer Relations Certificate Authority · Expand the ...
Read more >
unable to build chain to self-signed root for signer "iPhone ...
Open Keychain Access; Select login, and click Certificates; Double click Apple Worldwide Developer Relations Certificate Authority; Open trust section, and set ...
Read more >
Xcode 12.5 - Unable to build chain to self-signed root for signer
Error: Unable to build chain to self-signed root for signer​​ By default, we have the proper certificates on the image, however, if you...
Read more >
Thread: Unable to build chain to self-signed root for signer
This done when you build in XCode, you need signing for test on devices or publish in appstore. this error may be because...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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