atlanticaccent / starsector-mod-manager-rust

A mod manager for Starsector, a space fleet-battle and economics simulator. This time written in Rust.
https://atlanticaccent.github.io/starsector-mod-manager-rust/
MIT License
33 stars 1 forks source link

Crash on MacOS 10.15.2 due to missing libarchive #82

Closed SchmaR closed 2 years ago

SchmaR commented 3 years ago

Hi,

the mod manager v 0.4.1 crashes on MacOS 10.15.2. It seems it does not ship with its dependency on libarchive.13. After installing libarchive.13 using homebrew the app is starting.

BTW: Thanks for your work!

Process:               starsector_mod_manager [19278]
Path:                  /private/var/folders/*/Starsector Mod Manager.app/Contents/MacOS/starsector_mod_manager
Identifier:            ???
Version:               0.4.1 (20210823.202941)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           starsector_mod_manager [19278]
User ID:               501

Date/Time:             2021-09-08 12:08:16.635 +0200
OS Version:            Mac OS X 10.15.2 (19C57)
Report Version:        12

Time Awake Since Boot: 350000 seconds
Time Since Wake:       1900 seconds

System Integrity Protection: enabled

Notes:                 Translocated Process

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/opt/libarchive/lib/libarchive.13.dylib
  Referenced from: /private/var/folders/*/Starsector Mod Manager.app/Contents/MacOS/starsector_mod_manager
  Reason: image not found
atlanticaccent commented 2 years ago

Is this still an issue on the latest release (0.4.2)? I'm assuming it does, though I can understand if it's hard to test.

atlanticaccent commented 2 years ago

Note to self: may be able to fix using this https://gist.github.com/Birch-san/e84cfa3b93ffa104af2bd9a047d14109

atlanticaccent commented 2 years ago

@SchmaR Hi, I think the latest release may have definitively fixed this. It's a bit hard for me test so it'd be great if you could give it a shot sometime!

atlanticaccent commented 2 years ago

Note to self: could use ruby-macho to modify RPaths in a more "official" way? Though the current script works well enough

atlanticaccent commented 2 years ago

Going to close this, as I believe this has been fully solved now