question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
sethlucommented, Dec 15, 2016

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 call electron-osx-sign and have it embedded in the app bundle while signing.

1reaction
saghulcommented, Dec 15, 2016

@sethlu Thanks for the explanation, much appreciated.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found