[mac] Invalid signature crash on runtime
See original GitHub issue- Version: 10.7.0
- Target: mac
Hi! I’m getting a runtime crash when starting my app after (apparently correctly) signing it for distribution outside of the store.
The signing process seems to work fine:
Packaging for darwin x64 using electron 1.4.12 to dist-electron/mac
Signing app (identity: Developer ID Application: AG Projects)
But when running the resulting app:
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
It seems to be correctly signed though:
codesign --verify --verbose /Applications/Sylk.app/
/Applications/Sylk.app/: valid on disk
/Applications/Sylk.app/: satisfies its Designated Requirement
spctl --assess --type execute --verbose --ignore-cache /Applications/Sylk.app
/Applications/Sylk.app: accepted
override=security disabled
All I did was to update all packages (I made no other changes to my system, that I remember) and browsed the tracker but looks like the problem should be gone 😒
Any hints would be appreciated. ❤️
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
App crashing at startup with "Code Signature Invalid"
Hello, My app (embedding a Finder ext and Sys ext) is running well in my development machine (Big Sur with SIP disabled) but...
Read more >swift - How to run an iOS app that causes runtime error for ...
1) device crashes on startup: code signature invalid for "path/to/Flutter.framework/Flutter" #49504" seems to be the same issue. I'm using XCode ...
Read more >Apps downloaded from Mac App Store won't start due to ...
I'm currently trying to resurrect my 2010 MacBook Pro 15" while my 2015 is away for repairs. The latest it can run is...
Read more >1689807 - macOS startup crash "Code Signature Invalid"
-- Entitlements to apply to the .app bundle and all executable files contained within it during codesigning of production channel builds that will...
Read more >Error opening FileMaker Pro 18 runtime solutions with Mac OS ...
Crashed Thread: 0. Exception Type: EXC_CRASH (Code Signature Invalid). Exception Codes: 0x0000000000000000, 0x0000000000000000.
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
Hi @saghul! A quick fix to your current issue is to remove the entitlements regarding sandbox in your entitlements file (because it’s not necessary for a
darwin
distribution outside the Mac App Store). However, if you would like to to keep the entitlements about enabling app sandbox, I would recommend placing a copy of your provisioning profile (for distribution outside the Mac App Store) under the current working directory where you callelectron-osx-sign
and have it embedded in the app bundle while signing.@sethlu Thanks for the explanation, much appreciated.