"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:
- Created 3 years ago
- Comments:12
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
Try to move the folder into desktop or any other non-admin folder. Then run the command without using sudo.
Update to the latest version of electron and electron-builder.
On Thu, Dec 9, 2021 at 01:50 Careteen @.***> wrote: