2 Replies
      Latest reply on Mar 26, 2020 3:03 AM by dtecelao
      dtecelao Level 1 Level 1 (0 points)

        Hi all,


        After some trouble, I have managed to get my app signed and notarized. However, when testing the .dmg installer in another computer (running macOS Catalina), it fails to run - the splash screen appears at the beggining and then the app just closes.


        My app is built on Electron 4.0.6 and uses both Python (backend) and javascript (frontend), which communicate over a websocket (which is initialised in the splashscreen). My app reads and writes files from a folder in Documents (config files) and also reads and saves files through user input. Furthermore, my app performs acquisitions over Bluetooth and USB, and uses the user's location.


        I have been using the following entitlements (entitlements.mac.plist) for signing entitlements and entitlementsInherit:

        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
        <plist version="1.0">

        To run the signing I use the following command:

        ./node_modules/.bin/electron-osx-sign dist/MyApp.app --no-gatekeeper-assess --identity="Developer ID Application: COMPANY (#######)" --entitlements=dist/entitlements.mac.plist --entitlementsInherit=dist/entitlements.mac.plist


        Afterwards, I sign all the files with extension .so, .dylib, .a and .o using XCode command:

        codesign --sign "Developer ID Application: COMAPNY (########)" \
                         --entitlements dist/entitlements.mac.plist \
                         --deep filename \
                         --force \
                         --timestamp \
                         --options runtime;


        Any clues of what is wrong? Unfortunately I don't know how to gather information on the error that macOS is throwing - I just see my app closing suddenly.


        Many thanks,