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.

electron app crashes after signing. Works fine without signing.

See original GitHub issue

I want to make my electron application live to mac app store. So i found article and i followed this steps:

  1. I used electron packager to pack the application with this command: "electron-packager . --appname=cruster --app-bundle-id=xxx.xxx.xxx --version=1.7.10 --overwrite --platform=mas --arch=x64 --icon=./app.icns --prune --out=mas-build --ignore --app-version=1.0.0"

Note: After 1st step, cruster.app is generated and when i run this .app file it opens successfully and run fine.

2)And then i am using electron-osx-sign to sign my application with given command: electron-osx-sign cruster.app --type=distribution --identity=“3rd Party Mac Developer Application: XXXXX (XXXX)” --entitlements=‘parent.plist’ --entitlements-inherit=‘child.plist’ --provisioning-profile=“distribution.provisionprofile”

Note: After 2nd step, when i open my cruster.app is crashes with error :

Exception Type: EXC_CRASH (Code Signature Invalid) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

  1. if I use system’s codesign command: codesign --deep --verbose --force --sign "3rd Party Mac Developer Application: XXXX (XXXX)" cruster.app

then it signs successfully and also opens and runs.

But after that i use below command to generate .pkg and load it to the application loader: electron-osx-flat HK.app --identity="XXXX (XXXX)" then it generates .pkg but then application loader throws error that sandbox is not enabled.

I am trying this for two days and i’m out of solution, please can anyone help?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:23 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
philippnoahcommented, May 23, 2020

@sethlu Thanks! I already did actually and was able to figure out the solution. Even more helper binaries that somehow got left out during the signing process. I’ll post the solution to it soon.

0reactions
sethlucommented, May 23, 2020

Speaking of binary files, the latest electron-osx-sign@0.4.16 should be much better at figuring out almost all of them by itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron app crashes after signing. Works fine without signing.
Another good place to check the cause of the crash is from the Console app. See if any error is emitted there right...
Read more >
Electron app crashes when I sign it on mac - Stack Overflow
If I just download that boilerplate and build an app it does sign it and it does work without the error. So that...
Read more >
Code Signing | Electron
Code signing is a security technology that you use to certify that an app was created by you.
Read more >
I'm frustrated with the code signi… | Apple Developer Forums
Reason was app crash, on checking error code it looks like code signing issue. I had done the best by following the code...
Read more >
Electron | Sentry Documentation
Configuring the Client ... Start by configuring the SDK as described above. This will enable the Electron CrashReporter for native app crashes and...
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