Open RobertHilbrich opened 4 months ago
was typo in commit msg.
After using this unsigned installer in a new macOS 14 VM (with no homebrew), this is can be said:
/Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/EclipseSUMO/bin/
Applications
folder (and thus are accessible through the Launchpad)But following problems appeared:
sumo
(using the terminal) would lead to the following error:
dyld[2217]: Library not loaded: /opt/homebrew/opt/xerces-c/lib/libxerces-c-3.2.dylib
Referenced from: <30D86F4B-6723-33B9-A414-F6A7C3459209> /Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/EclipseSUMO/bin/sumo
Reason: tried: '/opt/homebrew/opt/xerces-c/lib/libxerces-c-3.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/xerces-c/lib/libxerces-c-3.2.dylib' (no such file), '/opt/homebrew/opt/xerces-c/lib/libxerces-c-3.2.dylib' (no such file)
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: sumo-gui [4045]
Path: /Applications/SUMO sumo-gui.app/Contents/MacOS/SUMO sumo-gui
Identifier: sumo-gui
Version: ???
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2024-10-10 12:08:10.5632 +0200
OS Version: macOS 14.0 (23A344)
Report Version: 12
Anonymous UUID: D7BDC147-9415-58AC-F8F5-0B924FCE56D0
Time Awake Since Boot: 5200 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: /opt/homebrew/*/libX11.6.dylib
Referenced from: <1FF4D311-14E1-3677-8360-F297F0BE47C6> /Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/EclipseSUMO/bin/sumo-gui
Reason: tried: '/Library/Frameworks/EclipseSUMO.framework/Versions/Current/EclipseSUMO/lib/libX11.6.dylib' (no such file), '/libX11.6.dylib' (no such file), '/opt/homebrew/*/libX11.6.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/*/libX11.6.dylib' (no such file), '/opt/homebrew/*/libX11.6.dylib' (no such file)
(terminated at launch; ignore backtrace)
Thread 0 Crashed:
0 dyld 0x1802f5b48 __abort_with_payload + 8
1 dyld 0x180302108 abort_with_payload_wrapper_internal + 104
2 dyld 0x18030213c abort_with_payload + 16
3 dyld 0x180289518 dyld4::halt(char const*, dyld4::StructuredError const*) + 304
4 dyld 0x1802861e8 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3884
5 dyld 0x180284f44 start + 1948
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000001 x2: 0x000000016da3a7b0 x3: 0x0000000000000093
x4: 0x000000016da3a3b0 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000020 x9: 0x000000016da3a321 x10: 0x000000000000000a x11: 0x0000000000000000
x12: 0x0000000000000034 x13: 0x1000000000000000 x14: 0x0000000000000004 x15: 0x0000000000008000
x16: 0x0000000000000209 x17: 0x000000018028237c x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016da3a3b0 x21: 0x0000000000000093 x22: 0x000000016da3a7b0 x23: 0x0000000000000001
x24: 0x0000000000000006 x25: 0x000000016da3b218 x26: 0x000000016da3b158 x27: 0x0000000000000000
x28: 0x000000001f070004 fp: 0x000000016da3a380 lr: 0x0000000180302108
sp: 0x000000016da3a340 pc: 0x00000001802f5b48 cpsr: 0x80001000
far: 0x000000010481c000 esr: 0x56000080 Address size fault
Binary Images:
0x103aec000 - 0x103c9ffff libxerces-c-3.2.dylib (*) <04358baf-8b42-31bb-8419-aee3c9219e7d> /Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/EclipseSUMO/lib/libxerces-c-3.2.dylib
0x104198000 - 0x1043cffff libproj.25.dylib (*) <79f9b985-b266-3325-be10-869f65d72a56> /Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/EclipseSUMO/lib/libproj.25.dylib
0x103800000 - 0x103817fff libintl.8.dylib (*) <9924fd2d-8556-34b2-add9-ab2838b3359b> /Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/EclipseSUMO/lib/libintl.8.dylib
0x10385c000 - 0x103873fff libfmt.11.dylib (*) <127bf9ed-34cf-3e1a-a2b1-fb5818e8c935> /Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/EclipseSUMO/lib/libfmt.11.dylib
0x104530000 - 0x1046fffff libFOX-1.6.0.dylib (*) <f2c2ba1f-1988-3776-b718-4628de88549a> /Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/EclipseSUMO/lib/libFOX-1.6.0.dylib
0x1023c4000 - 0x102beffff sumo-gui (*) <1ff4d311-14e1-3677-8360-f297f0be47c6> /Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/EclipseSUMO/bin/sumo-gui
0x18027f000 - 0x180312873 dyld (*) <ffd8ab66-c9ab-31df-ab80-3a3dff367ddd> /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=907.2M resident=0K(0%) swapped_out_or_unallocated=907.2M(100%)
Writable regions: Total=16.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=16.3M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 1
Stack 8176K 1
VM_ALLOCATE 16K 1
__DATA 5147K 8
__DATA_CONST 534K 7
__DATA_DIRTY 7K 1
__LINKEDIT 892.6M 7
__TEXT 14.7M 7
dyld private memory 4384K 4
=========== ======= =======
TOTAL 981.1M 37
-----------
Full Report
-----------
{"app_name":"sumo-gui","timestamp":"2024-10-10 12:08:10.00 +0200","app_version":"","slice_uuid":"1ff4d311-14e1-3677-8360-f297f0be47c6","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 14.0 (23A344)","roots_installed":0,"incident_id":"D7219A41-382F-4617-BC24-460F9BBD3855","name":"sumo-gui"}
{
"uptime" : 5200,
"procRole" : "Default",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "VirtualMac2,1",
"coalitionID" : 1392,
"osVersion" : {
"train" : "macOS 14.0",
"build" : "23A344",
"releaseType" : "User"
},
"captureTime" : "2024-10-10 12:08:10.5632 +0200",
"codeSigningMonitor" : 0,
"incident" : "D7219A41-382F-4617-BC24-460F9BBD3855",
"pid" : 4045,
"translated" : false,
"cpuType" : "ARM-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2024-10-10 12:08:10.5064 +0200",
"procStartAbsTime" : 125368375186,
"procExitAbsTime" : 125369733392,
"procName" : "sumo-gui",
"procPath" : "\/Applications\/SUMO sumo-gui.app\/Contents\/MacOS\/SUMO sumo-gui",
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "org.eclipse.sumo.apps.sumo-gui",
"crashReporterKey" : "D7BDC147-9415-58AC-F8F5-0B924FCE56D0",
"codeSigningID" : "sumo-gui",
"codeSigningTeamID" : "",
"codeSigningFlags" : 570556929,
"codeSigningValidationCategory" : 10,
"codeSigningTrustLevel" : 4294967295,
"instructionByteStream" : {"beforePC":"NAEAANQAAAAQAQAAGAEAACABAAAoAQAAMAEAAEwBAAAwQYDSARAA1A==","atPC":"AwEAVH8jA9X9e7+p\/QMAkcww\/pe\/AwCR\/XvBqP8PX9bAA1\/WEC2A0g=="},
"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: \/opt\/homebrew\/*\/libX11.6.dylib","Referenced from: <1FF4D311-14E1-3677-8360-F297F0BE47C6> \/Library\/Frameworks\/EclipseSUMO.framework\/Versions\/1.21.0\/EclipseSUMO\/bin\/sumo-gui","Reason: tried: '\/Library\/Frameworks\/EclipseSUMO.framework\/Versions\/Current\/EclipseSUMO\/lib\/libX11.6.dylib' (no such file), '\/libX11.6.dylib' (no such file), '\/opt\/homebrew\/*\/libX11.6.dylib' (no such file), '\/System\/Volumes\/Preboot\/Cryptexes\/OS\/opt\/homebrew\/*\/libX11.6.dylib' (no such file), '\/opt\/homebrew\/*\/libX11.6.dylib' (no such file)"]},
"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":41018,"threadState":{"x":[{"value":6},{"value":1},{"value":6134409136},{"value":147},{"value":6134408112},{"value":0},{"value":0},{"value":0},{"value":32},{"value":6134407969},{"value":10},{"value":0},{"value":52},{"value":1152921504606846976},{"value":4},{"value":32768},{"value":521},{"value":6445081468,"symbolLocation":416,"symbol":"__simple_bprintf"},{"value":0},{"value":0},{"value":6134408112},{"value":147},{"value":6134409136},{"value":1},{"value":6},{"value":6134411800},{"value":6134411608},{"value":0},{"value":520552452}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6445605128},"cpsr":{"value":2147487744},"fp":{"value":6134408064},"sp":{"value":6134408000},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6445554504,"matchesCrashFrame":1},"far":{"value":4370579456}},"frames":[{"imageOffset":486216,"symbol":"__abort_with_payload","symbolLocation":8,"imageIndex":6},{"imageOffset":536840,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":104,"imageIndex":6},{"imageOffset":536892,"symbol":"abort_with_payload","symbolLocation":16,"imageIndex":6},{"imageOffset":42264,"symbol":"dyld4::halt(char const*, dyld4::StructuredError const*)","symbolLocation":304,"imageIndex":6},{"imageOffset":29160,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3884,"imageIndex":6},{"imageOffset":24388,"symbol":"start","symbolLocation":1948,"imageIndex":6}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64",
"base" : 4356751360,
"size" : 1785856,
"uuid" : "04358baf-8b42-31bb-8419-aee3c9219e7d",
"path" : "\/Library\/Frameworks\/EclipseSUMO.framework\/Versions\/1.21.0\/EclipseSUMO\/lib\/libxerces-c-3.2.dylib",
"name" : "libxerces-c-3.2.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4363747328,
"size" : 2326528,
"uuid" : "79f9b985-b266-3325-be10-869f65d72a56",
"path" : "\/Library\/Frameworks\/EclipseSUMO.framework\/Versions\/1.21.0\/EclipseSUMO\/lib\/libproj.25.dylib",
"name" : "libproj.25.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4353687552,
"size" : 98304,
"uuid" : "9924fd2d-8556-34b2-add9-ab2838b3359b",
"path" : "\/Library\/Frameworks\/EclipseSUMO.framework\/Versions\/1.21.0\/EclipseSUMO\/lib\/libintl.8.dylib",
"name" : "libintl.8.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4354064384,
"size" : 98304,
"uuid" : "127bf9ed-34cf-3e1a-a2b1-fb5818e8c935",
"path" : "\/Library\/Frameworks\/EclipseSUMO.framework\/Versions\/1.21.0\/EclipseSUMO\/lib\/libfmt.11.dylib",
"name" : "libfmt.11.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4367515648,
"size" : 1900544,
"uuid" : "f2c2ba1f-1988-3776-b718-4628de88549a",
"path" : "\/Library\/Frameworks\/EclipseSUMO.framework\/Versions\/1.21.0\/EclipseSUMO\/lib\/libFOX-1.6.0.dylib",
"name" : "libFOX-1.6.0.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4332470272,
"size" : 8568832,
"uuid" : "1ff4d311-14e1-3677-8360-f297f0be47c6",
"path" : "\/Library\/Frameworks\/EclipseSUMO.framework\/Versions\/1.21.0\/EclipseSUMO\/bin\/sumo-gui",
"name" : "sumo-gui"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6445068288,
"size" : 604276,
"uuid" : "ffd8ab66-c9ab-31df-ab80-3a3dff367ddd",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"sharedCache" : {
"base" : 6444318720,
"size" : 4012523520,
"uuid" : "7906534c-5d2b-3ba8-b9c6-93a5cf1b7b50"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=907.2M resident=0K(0%) swapped_out_or_unallocated=907.2M(100%)\nWritable regions: Total=16.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=16.3M(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 5147K 8 \n__DATA_CONST 534K 7 \n__DATA_DIRTY 7K 1 \n__LINKEDIT 892.6M 7 \n__TEXT 14.7M 7 \ndyld private memory 4384K 4 \n=========== ======= ======= \nTOTAL 981.1M 37 \n",
"legacyInfo" : {
"threadTriggered" : {
}
},
"logWritingSignature" : "4746f81565e29451af87796ac75a02023896db97",
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "60da5e84ab0ca017dace9abf",
"factorPackIds" : {
},
"deploymentId" : 240000008
},
{
"rolloutId" : "61675b89201f677a9a4cbd65",
"factorPackIds" : {
"HEALTH_FEATURE_AVAILABILITY" : "64d14f3e1008ca2fac17a163"
},
"deploymentId" : 240000064
}
],
"experiments" : [
]
}
}
Model: VirtualMac2,1, BootROM 10151.1.1, 4 processors, 8 GB, SMC
Memory Module: unknown, Unknown
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Ethernet, Ethernet, en0
USB Device: USB31Bus
USB Device: Virtual USB Digitizer
USB Device: Virtual USB Keyboard
Thunderbolt Bus:
Here the full tree view of the resulting directories and files inside /Library/Frameworks/EclipseSUMO.framework/Versions/1.21.0/
:
Overview
It seems that the macOS packaging approach so far has not be satisfying for a lot of users. We should investigate other options - probably native macOS options.
Requirements
Proposal
Things to discuss
Implementation
Here are my notes from googling and checking the usage of
pkgbuild
andproductbuild
. There is alsoCPack
, but I assume, that it is a wiser choice to use macOS tools.SUMO Framework Package
pkgbuild --root SUMOFramework.framework --identifier com.yourcompany.SUMOFramework --version 1.0 --install-location /Library/Frameworks/SUMOFramework.framework SUMOFramework.pkg
App Packages
pkgbuild --root SumoGUI.app --identifier com.yourcompany.SumoGUI --version 1.0 --install-location /Applications/SumoGUI.app SumoGUI.pkg
Distribution XML for the Installer
Installer Package
productbuild --distribution distribution.xml --package-path . --resources ./resources --version 1.0 SUMOInstaller.pkg