mas-cli / mas

:package: Mac App Store command line interface
MIT License
10.89k stars 274 forks source link

Swift runtime exception on El Capitan #467

Open hao-lh opened 2 years ago

hao-lh commented 2 years ago

Your Environment

Software: System Software Overview: System Version: OS X 10.11.6 (15G22010) Kernel Version: Darwin 15.6.0 Time since boot: 1 day 17:12

mas Install Method

Describe the Bug

A clear and concise description of what the bug is. When installed from brew install mas-cli/tap/mas for older macOS version And run from terminal, get following exceptions:

dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /usr/local/bin/mas Reason: image not found [1] 6724 trace trap mas outdated

To Reproduce

Steps to reproduce the behavior:

  1. brew install mas-cli/tap/mas
  2. mas outdated
  3. Should be able to see above mentioned exceptions
twlz0ne commented 2 years ago

Same here.

$ brew install mas-cli/tap/mas
$ mas --help
dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /usr/local/bin/mas
  Reason: image not found
fish: Job 1, 'mas --help' terminated by signal SIGABRT (Abort)

$ mdfind -name libswiftCore.dylib
/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/libswiftCore.dylib
/Library/Developer/CommandLineTools/usr/lib/swift/macosx/libswiftCore.dylib
/System/Library/PrivateFrameworks/Swift/libswiftCore.dylib

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.13.6
BuildVersion:   17G14042

$ xcodebuild -version
Xcode 10.1
Build version 10B61
rgoldberg commented 1 month ago

@hao-lh @twlz0ne Did you follow the instructions to install the Swift 5 runtime?