codesign failed 'No such file or directory'
See original GitHub issueelectron-osx-sign version is 0.4.7, and my computer is macOS High Sierra(10.13.1) I tried remove “–strict”,and it works. I noticed that ‘–strict’ flag was passed in macOS El Capitan and above since 0.4.3. I wonder to know what this is for. Here is log:
electron-osx-sign Signing application...
> Application: /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app
> Platform: darwin
> Entitlements: undefined
> Child entitlements: undefined
> Additional binaries: undefined
> Identity: { name: 'Mac Developer: JingJing Ren (E3J5T3285Z)',
hash: 'C012C03BD6B317C39F35844121B6EE935B9E5919' } +0ms
electron-osx-sign Walking... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents +3ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework +251ms
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib +2s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib +984ms
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Resources/crashpad_handler +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Resources/crashpad_handler +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework +952ms
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Electron Framework.framework +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle +2s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle +1ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Mantle.framework +981ms
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Mantle.framework +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/A/ReactiveCocoa +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/A/ReactiveCocoa +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/ReactiveCocoa.framework +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/ReactiveCocoa.framework +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Squirrel.framework/Versions/A/Resources/ShipIt +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Squirrel.framework/Versions/A/Resources/ShipIt +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel +991ms
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Squirrel.framework +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/Squirrel.framework +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper EH.app/Contents/MacOS/快乐码字4.0 Helper EH +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper EH.app/Contents/MacOS/快乐码字4.0 Helper EH +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper EH.app +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper EH.app +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper NP.app/Contents/MacOS/快乐码字4.0 Helper NP +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper NP.app/Contents/MacOS/快乐码字4.0 Helper NP +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper NP.app +986ms
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper NP.app +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper.app/Contents/MacOS/快乐码字4.0 Helper +992ms
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper.app/Contents/MacOS/快乐码字4.0 Helper +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper.app +971ms
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Frameworks/快乐码字4.0 Helper.app +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/better-sqlite3/build/Release/better_sqlite3.node +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/better-sqlite3/build/Release/test_extension.node +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/better-sqlite3/build/Release/test_extension.node +1ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/integer/build/Release/integer.node +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/integer/build/Release/integer.node +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/lzz-gyp/lzz-compiled/linux +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/lzz-gyp/lzz-compiled/linux +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/lzz-gyp/lzz-compiled/osx +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app/Contents/Resources/node_modules/lzz-gyp/lzz-compiled/osx +0ms
electron-osx-sign Signing... /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app +1s
electron-osx-sign Executing... codesign --sign C012C03BD6B317C39F35844121B6EE935B9E5919 --force /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app +0ms
electron-osx-sign Verifying... +3s
electron-osx-sign Verifying application bundle with codesign... +1ms
electron-osx-sign Executing... codesign --verify --deep --verbose=2 --strict /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app +0ms
electron-osx-sign Error executing file:
> Stdout:
> Stderr: /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app: No such file or directory
+1s
{ Error: Command failed: codesign --verify --deep --verbose=2 --strict /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app
/Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app: No such file or directory
at ChildProcess.exithandler (child_process.js:270:12)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:897:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
From previous event:
at MacPackager.sign (/Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/out/macPackager.js:272:11)
at /Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/src/macPackager.ts:96:26
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
From previous event:
at /Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/src/macPackager.ts:96:10
at Generator.next (<anonymous>)
From previous event:
at MacPackager.pack (/Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/out/macPackager.js:200:11)
at /Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/src/packager.ts:345:24
at Generator.next (<anonymous>)
at xfs.stat (/Users/neil/Documents/快乐码字/happy/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16)
at /Users/neil/Documents/快乐码字/happy/node_modules/fs-extra/node_modules/graceful-fs/polyfills.js:287:18
at FSReqWrap.oncomplete (fs.js:153:5)
From previous event:
at Packager.doBuild (/Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/out/packager.js:407:11)
at /Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/src/packager.ts:289:52
From previous event:
at Packager._build (/Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/out/packager.js:351:11)
at /Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/src/packager.ts:259:23
at Generator.next (<anonymous>)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
From previous event:
at Packager.build (/Users/neil/Documents/快乐码字/happy/node_modules/electron-builder-lib/out/packager.js:311:11)
at /Users/neil/Documents/快乐码字/happy/node_modules/electron-builder/src/builder.ts:287:40
at Generator.next (<anonymous>)
From previous event:
at _build (/Users/neil/Documents/快乐码字/happy/node_modules/electron-builder/out/builder.js:61:21)
at Object.build (/Users/neil/Documents/快乐码字/happy/node_modules/electron-builder/src/builder.ts:257:10)
at buildTargets (/Users/neil/Documents/快乐码字/happy/app/build.js:99:13)
at ChildProcess.<anonymous> (/Users/neil/Documents/快乐码字/happy/app/build.js:42:9)
at emitTwo (events.js:130:20)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:897:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
killed: false,
code: 1,
signal: null,
cmd: 'codesign --verify --deep --verbose=2 --strict /Users/neil/Documents/快乐码字/happy/dist/osx/mac/快乐码字4.0.app' }
Issue Analytics
- State:
- Created 6 years ago
- Comments:20 (8 by maintainers)
Top Results From Across the Web
codesign --verify fails with "no such file or directory" · Issue #117
The problem is that when codesign is called to verify the bundle, if you are on a OS X version prior to 10.11,...
Read more >can't exec 'codesign' (No such file or directory) - Stack Overflow
I copied codesign from /usr/bin/ to: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin.
Read more >Command CodeSign failed with a nonzero exit code
I cant use ANY of apple's older examples with getting this. i386: No such file or directory. Command CodeSign failed with a nonzero...
Read more >Codesign failed on OS X - Google Groups
Hi there,. It seems like you may have unlocked the CodeSign Beast when you first decided to code-sign files. I assume the example...
Read more >Command CodeSign failed with a nonzero exit code" error in ...
Solution · Click menu Product > Clean Build Folder while holding down option key or ⌘ - CMD + ⇧ - SHIFT +...
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
I do not have any non-ascii chars in my file path… but the
strict-verify: false
will fix my problem… (I also had to add a after packScript to delete some broken symlinks)@develar Could you please release electron-builder with dependency version of electron-osx-sign set to 0.4.8? Thanks.