Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codesign: No such file or directory #1480

Closed
rr326 opened this issue Apr 19, 2017 · 6 comments
Closed

Codesign: No such file or directory #1480

rr326 opened this issue Apr 19, 2017 · 6 comments

Comments

@rr326
Copy link

rr326 commented Apr 19, 2017

  • Version: 11.7.0
  • Target: OSX

(This is really a comment so that others can find the solution if they are looking. Please close.)

I was getting an error during the build process

codesign --verify --deep--verbose=2  --strict  /path/to/app/Test.app
...
/path/to/app/Test.app: No such file or directory

After a lot of debugging, it turns out this is a really terrible and cryptic codesign error message.
If I change it to --strict=symlinks
I get better info: /path/to/app/Test.app: invalid destination for symbolic link in bundle
Sure enough, there was a symlink in my bundle pointing outside the bundle.

@develar
Copy link
Member

develar commented Jun 1, 2017

Please try latest versions.

@develar develar closed this as completed Jun 1, 2017
@meekaah
Copy link

meekaah commented Sep 20, 2018

this still happens with the LATEST version, electron-osx-sign implemented a new option "strict-verify" that you can set to false. we should be able to override / set this parameter. currently impossible. @develar

@iamsush
Copy link

iamsush commented Oct 3, 2019

@ALL, I had the same issue and was getting the same type of error. However, I was able to resolve it by removing all the symlinks from my concerned folder(I was using a 3rd party library, there were many symlinks).

Note: Remove all the symlinks found by
find ./YOUR_CONCERNED_FOLDER/ -type l -ls

I hope it would help someone!

@DominikLevitsky
Copy link

This is currently happening in electron-builder 22.8

@bedney
Copy link
Contributor

bedney commented Aug 16, 2020

I can confirm that this continues to happen on electron-builder 22.8. Since there is no way to pass a setting for strict-verify flag for the signing code, I had to hack (the output JS file) macPackager.js file, around line 341, to add the following to the list of options to the signing code:

"strict-verify": false

bedney added a commit to TechnicalPursuit/electron-builder that referenced this issue Aug 19, 2020
…to the electron-osx-sign library

This change allows the author to provide a value for ‘strictVerify’ in the ’mac’ configuration. This value is then passed along to the electron-osx-sign library.

This is not a breaking change and it closes electron-userland#1480
develar pushed a commit that referenced this issue Sep 17, 2020
…roperty. (#5261)

* Added support for overriding ‘strict-verify’ electron-osx-sign property.

* Fix schema bugs (and run the electron builder schema fixer).

* Fix option so that electron-osx-sign behaves properly.

Close #1480
@john8329
Copy link

john8329 commented Aug 13, 2021

This happened to me when I tried switching from npm to yarn. The reason was that at build time it copied resources from node_modules, which if installed by yarn they contained different symlinks. My bad, but the error wasn't clear at all. You can see which links are broken using find . -type l ! -exec test -e {} \; -print on the app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants
@bedney @develar @meekaah @rr326 @DominikLevitsky @iamsush @john8329 and others