Closed Salmankhan033 closed 5 months ago
Sorry, I'm not able to debug issues not caused specifically by electron-builder.
Two things stick out to me in your error report
code signature invalid
and no such file
.
Reason: tried: '/Applications/OrderLemon.app/Contents/Frameworks/Electron Framework.framework/Electron Framework' (code signature invalid in <4C4C4487-5555-3144-A16E-19F36F905AA6> '/Applications/OrderLemon.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x08457DD0, codeBlobSize=0x0010D7B0), '/Applications/OrderLemon.app/Contents/Frameworks/Electron Framework.framework/Electron Framework' (code signature invalid in <4C4C4487-5555-3144-A16E-19F36F905AA6> '/Applications/OrderLemon.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x08457DD0, codeBlobSize=0x0010D7B0), '/System/Library/Frameworks/Electron Framework.framework/Electron Framework' (no such file, no
Since mas and mac use different signatures, my best guess is to try building the app without any signing identity and see if it runs locally. If still running into an issue, please try different versions of Electron, curious if there's any difference there
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
I think you should check this comment. That is symlinks error with npm.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
the same issue. when adding the com.apple.developer.system-extension.install true to .plist. any luck? :(
Translated Report (Full Report Below)
-------------------------------------
Process: myapp [12636]
Path: /Users/USER/*/myapp.app/Contents/MacOS/myapp
Identifier: com.myapp.apptest
Version: 0.0.9 (0.0.9)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2024-01-08 07:56:06.2802 +0700
OS Version: macOS 14.2.1 (23C71)
Report Version: 12
Anonymous UUID: A608C1E0-8FD6-C17F-40B6-DEE5A5924F81
Sleep/Wake UUID: 956F52A5-F445-44D0-8E0B-6CAD6DBFA5B9
Time Awake Since Boot: 210000 seconds
Time Since Wake: 3773 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/Electron Framework.framework/Electron Framework
Referenced from: <4C4C4421-5555-3144-A1E7-9F51A19B922E> /Users/USER/*/myapp.app/Contents/MacOS/myapp
Reason: tried: '/Users/macmini/projects/myapp-desktop/release/build/mac-arm64/myapp.app/Contents/Frameworks/Electron Framework.framework/Electron Framework' (code signature invalid in <4C4C443F-5555-3144-A140-ADAAD3B02552> '/Users/macmini/projects/myapp-desktop/release/build/mac-arm64/myapp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x088C33D0, codeBlobSize=0x00116310), '/Users/macmini/projects/myapp-desktop/release/build/mac-arm64/myapp.app/Contents/Frameworks/Electron Framework.framework/Electron Framework' (code signature invalid in <4C4C443F-5555-3144-A140-ADAAD3B02552> '/Users/macmini/projects/myapp-desktop/release/build/mac-arm64/myapp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Fram
(terminated at launch; ignore backtrace)
Thread 0 Crashed:
0 dyld 0x182c3e55c __abort_with_payload + 8
1 dyld 0x182c4ab10 abort_with_payload_wrapper_internal + 104
2 dyld 0x182c4ab44 abort_with_payload + 16
3 dyld 0x182bd1584 dyld4::halt(char const*, dyld4::StructuredError const*) + 304
4 dyld 0x182bce254 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3884
5 dyld 0x182bccedc start + 1844
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000001 x2: 0x000000016f066900 x3: 0x00000000000000a2
x4: 0x000000016f066500 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000ae0
x8: 0x0000000000000020 x9: 0x000000016f066474 x10: 0x000000000000000a x11: 0x0000000000000000
x12: 0x0000000000000031 x13: 0x1000000000000000 x14: 0x0000000000000004 x15: 0x0000000000008000
x16: 0x0000000000000209 x17: 0x0000000182bca37c x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016f066500 x21: 0x00000000000000a2 x22: 0x000000016f066900 x23: 0x0000000000000001
x24: 0x0000000000000006 x25: 0x000000016f067338 x26: 0x000000016f067278 x27: 0x0000000000000000
x28: 0x000000001f070004 fp: 0x000000016f0664d0 lr: 0x0000000182c4ab10
sp: 0x000000016f066490 pc: 0x0000000182c3e55c cpsr: 0x80001000
far: 0x0000000000000000 esr: 0x56000080 Address size fault
Binary Images:
0x100d98000 - 0x100d9bfff com.myapp.apptest (0.0.9) <4c4c4421-5555-3144-a1e7-9f51a19b922e> /Users/USER/*/myapp.app/Contents/MacOS/myapp
0x182bc7000 - 0x182c5b347 dyld (*) <324e4ad9-e01f-3183-b09f-3e20b326643a> /usr/lib/dyld
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=892.0M resident=0K(0%) swapped_out_or_unallocated=892.0M(100%)
Writable regions: Total=12.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=12.2M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 1
Stack 8176K 1
VM_ALLOCATE 16K 1
__DATA 27K 2
__DATA_CONST 38K 2
__DATA_DIRTY 7K 1
__LINKEDIT 891.4M 2
__TEXT 612K 2
dyld private memory 4384K 4
=========== ======= =======
TOTAL 960.4M 16
-----------
Full Report
-----------
{"app_name":"myapp","timestamp":"2024-01-08 07:56:06.00 +0700","app_version":"0.0.9","slice_uuid":"4c4c4421-5555-3144-a1e7-9f51a19b922e","build_version":"0.0.9","platform":1,"bundleID":"com.myapp.apptest","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.2.1 (23C71)","roots_installed":0,"name":"myapp","incident_id":"C0DDD413-BA1D-48FB-993B-B79CB1AA727A"}
{
"uptime" : 210000,
"procRole" : "Default",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "Macmini9,1",
"coalitionID" : 25953,
"osVersion" : {
"train" : "macOS 14.2.1",
"build" : "23C71",
"releaseType" : "User"
},
"captureTime" : "2024-01-08 07:56:06.2802 +0700",
"codeSigningMonitor" : 1,
"incident" : "C0DDD413-BA1D-48FB-993B-B79CB1AA727A",
"pid" : 12636,
"translated" : false,
"cpuType" : "ARM-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2024-01-08 07:56:06.1688 +0700",
"procStartAbsTime" : 5109568624964,
"procExitAbsTime" : 5109571292702,
"procName" : "myapp",
"procPath" : "\/Users\/USER\/*\/myapp.app\/Contents\/MacOS\/myapp",
"bundleInfo" : {"CFBundleShortVersionString":"0.0.9","CFBundleVersion":"0.0.9","CFBundleIdentifier":"com.myapp.apptest"},
"storeInfo" : {"deviceIdentifierForVendor":"5CFFA689-7EA6-5BDD-B11C-E9687B5EFB52","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.myapp.apptest",
"crashReporterKey" : "A608C1E0-8FD6-C17F-40B6-DEE5A5924F81",
"codeSigningID" : "com.myapp.apptest",
"codeSigningTeamID" : "B375WZM7G3",
"codeSigningFlags" : 1644258065,
"codeSigningValidationCategory" : 3,
"codeSigningTrustLevel" : 4294967295,
"instructionByteStream" : {"beforePC":"1AAAABABAAAYAQAAIAEAACgBAAAwAQAAOAEAAFQBAAAwQYDSARAA1A==","atPC":"AwEAVH8jA9X9e7+p\/QMAkUcu\/pe\/AwCR\/XvBqP8PX9bAA1\/WEC2A0g=="},
"wakeTime" : 3773,
"sleepWakeUUID" : "956F52A5-F445-44D0-8E0B-6CAD6DBFA5B9",
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"termination" : {"code":1,"flags":518,"namespace":"DYLD","indicator":"Library missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Library not loaded: @rpath\/Electron Framework.framework\/Electron Framework","Referenced from: <4C4C4421-5555-3144-A1E7-9F51A19B922E> \/Users\/USER\/*\/myapp.app\/Contents\/MacOS\/myapp","Reason: tried: '\/Users\/macmini\/projects\/myapp-desktop\/release\/build\/mac-arm64\/myapp.app\/Contents\/Frameworks\/Electron Framework.framework\/Electron Framework' (code signature invalid in <4C4C443F-5555-3144-A140-ADAAD3B02552> '\/Users\/macmini\/projects\/myapp-desktop\/release\/build\/mac-arm64\/myapp.app\/Contents\/Frameworks\/Electron Framework.framework\/Versions\/A\/Electron Framework' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x088C33D0, codeBlobSize=0x00116310), '\/Users\/macmini\/projects\/myapp-desktop\/release\/build\/mac-arm64\/myapp.app\/Contents\/Frameworks\/Electron Framework.framework\/Electron Framework' (code signature invalid in <4C4C443F-5555-3144-A140-ADAAD3B02552> '\/Users\/macmini\/projects\/myapp-desktop\/release\/build\/mac-arm64\/myapp.app\/Contents\/Frameworks\/Electron Framework.framework\/Versions\/A\/Electron Fram"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":1297082,"threadState":{"x":[{"value":6},{"value":1},{"value":6157658368},{"value":162},{"value":6157657344},{"value":0},{"value":0},{"value":2784},{"value":32},{"value":6157657204},{"value":10},{"value":0},{"value":49},{"value":1152921504606846976},{"value":4},{"value":32768},{"value":521},{"value":6488367996,"symbolLocation":416,"symbol":"__simple_bprintf"},{"value":0},{"value":0},{"value":6157657344},{"value":162},{"value":6157658368},{"value":1},{"value":6},{"value":6157660984},{"value":6157660792},{"value":0},{"value":520552452}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6488894224},"cpsr":{"value":2147487744},"fp":{"value":6157657296},"sp":{"value":6157657232},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6488843612,"matchesCrashFrame":1},"far":{"value":0}},"frames":[{"imageOffset":488796,"symbol":"__abort_with_payload","symbolLocation":8,"imageIndex":1},{"imageOffset":539408,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":104,"imageIndex":1},{"imageOffset":539460,"symbol":"abort_with_payload","symbolLocation":16,"imageIndex":1},{"imageOffset":42372,"symbol":"dyld4::halt(char const*, dyld4::StructuredError const*)","symbolLocation":304,"imageIndex":1},{"imageOffset":29268,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3884,"imageIndex":1},{"imageOffset":24284,"symbol":"start","symbolLocation":1844,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64",
"base" : 4309221376,
"CFBundleShortVersionString" : "0.0.9",
"CFBundleIdentifier" : "com.myapp.apptest",
"size" : 16384,
"uuid" : "4c4c4421-5555-3144-a1e7-9f51a19b922e",
"path" : "\/Users\/USER\/*\/myapp.app\/Contents\/MacOS\/myapp",
"name" : "myapp",
"CFBundleVersion" : "0.0.9"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6488354816,
"size" : 607048,
"uuid" : "324e4ad9-e01f-3183-b09f-3e20b326643a",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"sharedCache" : {
"base" : 6487605248,
"size" : 4061216768,
"uuid" : "f9ddd844-7f3f-34bd-be29-f0c72d5e5449"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=892.0M resident=0K(0%) swapped_out_or_unallocated=892.0M(100%)\nWritable regions: Total=12.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=12.2M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8176K 1 \nVM_ALLOCATE 16K 1 \n__DATA 27K 2 \n__DATA_CONST 38K 2 \n__DATA_DIRTY 7K 1 \n__LINKEDIT 891.4M 2 \n__TEXT 612K 2 \ndyld private memory 4384K 4 \n=========== ======= ======= \nTOTAL 960.4M 16 \n",
"legacyInfo" : {
"threadTriggered" : {
}
},
"logWritingSignature" : "dfeddd7d7334509ce1ff43b21ff624122b741192",
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "6112d17137f5d11121dcd4e2",
"factorPackIds" : {
},
"deploymentId" : 240000473
},
{
"rolloutId" : "6434420a89ec2e0a7a38bf5a",
"factorPackIds" : {
},
"deploymentId" : 240000011
}
],
"experiments" : [
]
}
}
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.
I am using "devDependencies": { "@electron/notarize": "^2.1.0", "electron": "^26.1.0", "electron-builder": "^24.6.3" },
I make mas and dmg but when I open dmg it directly crash the crashed report is the following :