ninxsoft / mist-cli

A Mac command-line tool that automatically downloads macOS Firmwares / Installers.
MIT License
620 stars 29 forks source link

Running v1.14 on Big Sur fails after download #144

Closed nabeards closed 1 year ago

nabeards commented 1 year ago

:beetle: Description

After installing 1.14 from the releases section, I ran mist download firmware "macOS Ventura". It went through the full download process, then errored out after the download completed with

dyld: lazy symbol binding failed: can't resolve symbol _$sScTss5NeverORszABRs_rlE17checkCancellationyyKFZ in /usr/local/bin/mist because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
dyld: can't resolve symbol _$sScTss5NeverORszABRs_rlE17checkCancellationyyKFZ in /usr/local/bin/mist because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
zsh: abort      mist download firmware "macOS Ventura"

:white_check_mark: Expected Behaviour

It should not error out.

:computer: Environment

:camera: Screenshots

screenshot
ninxsoft commented 1 year ago

The crash seems to be relating to the Task.checkCancellation() call when performing the shasum validation:

https://github.com/ninxsoft/mist-cli/blob/d15c9c5ec8513bb8d8e909fad4cfdb1eda92a49f/Mist/Extensions/URL%2BExtension.swift#L26-L35

@nabeards I noticed you are running macOS Big Sur 11.5.1 (20G80) - are you able to upgrade to or test on another Mac running the latest version of macOS Big Sur? ie. 11.7.9 (20G1426)

nabeards commented 1 year ago

@ninxsoft I have since upgraded my OS to Ventura so I can't verify, sorry!

ninxsoft commented 1 year ago

@nabeards no problem, I will go ahead and close the issue for now. We can re-open if the issue resurfaces on the latest macOS versions 👍

nabeards commented 1 year ago

Just as a follow-up: I did look into running Big Sur in a VM, but that's apparently not accomplished easily. Hopefully someone will eventually come along with the latest Big Sur and can verify this isn't an issue there. 🙂