6.3 beta crashes on macOS Mojave
rrenstrom opened this issue · comments
Munki 6.3 beta 2 isn't working on a Mojave client, the managedsoftwareupate (munkishim) binary is crashing
sudo managedsoftwareupdate
dyld: Symbol not found: _OBJC_CLASS_$_NSConstantArray
Referenced from: /usr/local/munki/managedsoftwareupdate (which was built for Mac OS X 11.0)
Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
in /usr/local/munki/managedsoftwareupdate
Abort trap: 6
Works if managedsoftwareupate.py is run directly instead of through shim
sudo /usr/local/munki/munki-python /usr/local/munki/.managedsoftwareupdate.py --version
6.3.0.4556
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.6
BuildVersion: 18G9323
Thanks. Looks like the Deployment Target was set to macOS 11.0.
I'll change that to match the Deployment Target for MSC.app, etc and do a new beta.
Could you try this, replacing the managedsoftwareupdate (munkishim) binary (after decompressing, of course)?
managedsoftwareupdate.zip
You'll need to rebuild the test managedsoftwareupdate, since it's not universal (only has arm64 executable)
Thanks. This works now on 10.14.6 test client
$ file managedsoftwareupdate
managedsoftwareupdate: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
managedsoftwareupdate (for architecture x86_64): Mach-O 64-bit executable x86_64
managedsoftwareupdate (for architecture arm64): Mach-O 64-bit executable arm64
$ sudo managedsoftwareupdate --version
6.3.0.4556
$ sudo managedsoftwareupdate -v
Managed Software Update Tool
Copyright 2010-2023 The Munki Project
https://github.com/munki/munki
Starting...
Should be resolved here: https://github.com/munki/munki/releases/tag/v6.3.0b3 (or I guess, technically here: cf3c246)