im using electron @5.0.0 and electron-builder@21.1.1
im 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 listed
a typically error log shows up as:
Process: Appname [874]
Path: /Volumes/VOLUME/*/Appname.app/Contents/MacOS/Appname
Identifier: com.appname.desktopapp
Version: 1.0.0 (1.0.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Appname [874]
User ID: 501
Date/Time: 2019-07-19 15:27:26.821 -0700
OS Version: Mac OS X 10.14.5 (18F2058)
Report Version: 12
Anonymous UUID: A4DA30A6-09EA-9677-95CD-EA316769DD4D
Sleep/Wake UUID: CC4B1217-0165-46A8-846E-BFA4D38C58E6
Time Awake Since Boot: 16000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes: 0x0000000000000032, 0x0000108a00082040
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x2
kernel 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-thread
0 ??? 0x0000108a00082040 0 + 18184892063808
1 com.github.Electron.framework 0x0000000103ffdad8 0x10273b000 + 25963224
2 com.github.Electron.framework 0x0000000103ffc6ce 0x10273b000 + 25958094
my 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 is
and 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/4040
the path of the file also curiously being the same one as the ones listed in that git issue
the 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