osx-sign: electron app crashes after signing. Works fine without signing.

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?

About this issue

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

Most upvoted comments

@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.