[resolved] Failing to sign app on macOS
See original GitHub issue- Version: 19.18.1
- Target: macOS
Hi, I think this was not happening in previous versions. I tried to remove the quote and the space from the app name, without success. I never had this problem before and did tons of release 😦
Edit: The problem may come from that I just updated by my system from macOS 10.12.4 to 10.12.6 I just discovered that when removing --string from codesign commands, it works
Edit2: it works when running manually the codesign command, but fails with electron-builder that is know failing on this:
Command failed: spctl --assess --type execute --verbose --ignore-cache --no-cache /Users/danielfebrero/Git/addaps_desktop/dist/mac/Addaps.app /Users/danielfebrero/Git/addaps_desktop/dist/mac/Addaps.app: rejected (invalid destination for symbolic link in bundle) override=security disabled
`Error: Command failed: codesign --verify --deep --verbose=2 --strict /Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app –prepared:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Addap’s beta Helper EH.app –validated:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Addap’s beta Helper EH.app –prepared:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Addap’s beta Helper NP.app –prepared:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Addap’s beta Helper.app –validated:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Addap’s beta Helper NP.app –validated:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Addap’s beta Helper.app –prepared:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/. –validated:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/. –prepared:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Mantle.framework/Versions/Current/. –prepared:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Squirrel.framework/Versions/Current/. –validated:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Mantle.framework/Versions/Current/. –validated:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/Squirrel.framework/Versions/Current/. –prepared:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/Current/. –validated:/Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/Current/. /Users/danielfebrero/Git/addaps_desktop/dist/mac/Addap’s beta.app: No such file or directory
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
From previous event: at MacPackager.sign (/Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/out/macPackager.js:268:11) at /Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/src/macPackager.ts:93:26 From previous event: at /Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/src/macPackager.ts:93:10 at next (native) From previous event: at MacPackager.pack (/Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/out/macPackager.js:190:11) at /Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/src/packager.ts:244:24 From previous event: at Packager.doBuild (/Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/out/packager.js:317:11) at /Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/src/packager.ts:175:52 at next (native) at runCallback (timers.js:574:20) at tryOnImmediate (timers.js:554:5) at processImmediate [as _immediateCallback] (timers.js:533:5) From previous event: at Packager.build (/Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/out/packager.js:236:11) at /Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/src/builder.ts:266:40 at next (native) From previous event: at build (/Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/out/builder.js:69:21) at Object.args [as handler] (/Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/src/cli/cli.ts:46:4) at Object.self.runCommand (/Users/danielfebrero/Git/addaps_desktop/node_modules/yargs/lib/command.js:233:22) at Object.Yargs.self._parseArgs (/Users/danielfebrero/Git/addaps_desktop/node_modules/yargs/yargs.js:1018:24) at Object.get [as argv] (/Users/danielfebrero/Git/addaps_desktop/node_modules/yargs/yargs.js:927:19) at Object.<anonymous> (/Users/danielfebrero/Git/addaps_desktop/node_modules/electron-builder/src/cli/cli.ts:41:15) at Module._compile (module.js:556:32) at Object.Module._extensions…js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.runMain (module.js:590:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3`
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top GitHub Comments
I ran this command from the root folder
In my case, I had a node_modules folder (not the original one) full of broken symlinks trying to point to original modules. No idea how it appears there. I deleted it and all goes well.
El 7 ago 2017 13:24 +0200, mharrisn notifications@github.com, escribió:
for anyone who’s looking for a script… you can make this as
afterPack
hook (before signing) if you are using electron-builder.