How to notarize Electron app for macOS Catalina (10.15)

What a painful experience to update Electron app for Catalina!

cannot be opened because the developer cannot be verified

The app for uploading to Apple App Store, doesn’t need any notarization!

production parent entitlements
production child entitlements

EXC_BAD_ACCESS (Code Signature Invalid)!

com.apple.security.cs.allow-unsigned-executable-memory

“cannot be opened because the developer cannot be verified”

What is your packaging tool?

osxNotarize with appleId
osxSign with hardenedRuntime
unpack native node modules from afar
macos packager configuration

Test through Developer ID Distribution Application

build a distributable app
Notarize the installer
pkg can’t be opened

More problems?

Fix the entitilements declarations

com.apple.security.cs.allow-jit

com.apple.security.cs.disable-executable-page-protection

com.apple.security.cs.allow-dyld-environment-variables

com.apple.security.automation.apple-events

Blank(white) screen?!

com.apple.security.app-sandbox

com.apple.security.inherit

com.apple.security.application-group

parent entitlements
child(inherit) entitlements

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store