Post not yet marked as solved
Post marked as unsolved with 14 replies, 7,132 views
im using electron @5.0.0 and electron-builder@21.1.1im having issues in trying to get an electron app to start. i have no problems signing (even after i had to do a workaround) and notarizing has no issues either as checking the logUrl, there are no issues listeda typically error log shows up as:Process: Appname [874]Path: /Volumes/VOLUME/*/Appname.app/Contents/MacOS/AppnameIdentifier: com.appname.desktopappVersion: 1.0.0 (1.0.0)Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Appname [874]User ID: 501Date/Time: 2019-07-19 15:27:26.821 -0700OS Version: Mac OS X 10.14.5 (18F2058)Report Version: 12Anonymous UUID: A4DA30A6-09EA-9677-95CD-EA316769DD4DSleep/Wake UUID: CC4B1217-0165-46A8-846E-BFA4D38C58E6Time Awake Since Boot: 16000 secondsSystem Integrity Protection: enabledCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_BAD_ACCESS (Code Signature Invalid)Exception Codes: 0x0000000000000032, 0x0000108a00082040Exception Note: EXC_CORPSE_NOTIFYTermination Reason: Namespace CODESIGNING, Code 0x2kernel messages:VM Regions Near 0x108a00082040: Memory Tag 255 0000108a00081000-0000108a00082000 [ 4K] ---/rwx SM=NUL --> Memory Tag 255 0000108a00082000-0000108a000ff000 [ 500K] r-x/rwx SM=COW Memory Tag 255 0000108a000ff000-0000108a07fbe000 [126.7M] ---/rwx SM=NUL Thread 0 Crashed:: Dispatch queue: com.apple.main-thread0 ??? 0x0000108a00082040 0 + 181848920638081 com.github.Electron.framework 0x0000000103ffdad8 0x10273b000 + 259632242 com.github.Electron.framework 0x0000000103ffc6ce 0x10273b000 + 25958094my entitlements file looks like this:<?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"> <dict> <key>com.apple.security.files.user-selected.read-write</key> <true/> <key>com.apple.security.cs.allow-unsigned-executable-memory</key> <true/> <key>com.apple.security.device.audio-input</key> <true/> <key>com.apple.security.files.user-selected.read-only</key> <true/> </dict></plist>if i run codesign -d --ent :- "path/to/file/shown/in/errorpath", i get the entitlements file on the console exactly as it isand have tried many other combinations with other keys, and this error very closely resembles the issue many others have regarding recent security changes Apple has made regarding notarization and hardened runtime: https://github.com/electron-userland/electron-builder/issues/4040the path of the file also curiously being the same one as the ones listed in that git issuethe main purpose of this app right now is just to load a video api that connects to session rooms for people to talk and see each other. this will later be expanded on but for now its a simple idea.my questions boil down to:is my entitlements file incorrect?am i missing a requirement like a provisioning profile?is there something that i have completely overlooked?ive been at this for several weeks now and badly want to wrap this up as it is so close to completion and cannot believe trying to get an electron app to run to be this difficult when apps like Slack and Discord dont have problems.thank you for any help you can provide