yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.27k stars 122 forks source link

Mint on Catalina #151

Open alexeyzhilnikov opened 4 years ago

alexeyzhilnikov commented 4 years ago

Looks like mint (version 0.12) does not work on macOS Catalina 10.15. For example, command mint run swiftformat swiftformat --swiftversion 5.0 --config ".swiftformat" returns an error, but swiftformat --swiftversion 5.0 --config ".swiftformat" works fine.

yonaskolb commented 4 years ago

What's the error? Works ok for me and others

yonaskolb commented 4 years ago

Depending on the error I could suggest reinstalling mint?

alexeyzhilnikov commented 4 years ago

Sorry, a bit more context: macOS Catalina 10.15, Xcode 10.3. The error: This copy of libswiftCore.dylib requires an OS version prior to 10.14.4.

alexanderzhigulich commented 4 years ago

Hello, have the same: Info:

$ sw_vers ProductName: Mac OS X ProductVersion: 10.15 BuildVersion: 19A603

$ swift --version Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) Target: x86_64-apple-darwin19.0.0

$ mint --version Version: 0.13.0

$ xcodegen --version Version: 2.10.1

$ xcodebuild -version Xcode 11.1 Build version 11A1027

$ mint run xcodegen xcodegen --use-cache 🌱 Using yonaskolb/xcodegen 2.10.1 from Mintfile. 🌱 xcodegen 2.10.1 already installed 🌱 Running xcodegen 2.10.1... This copy of libswiftCore.dylib requires an OS version prior to 10.14.4. Abort trap: 6

@yonaskolb Please, let me know if you need more information.

alexanderzhigulich commented 4 years ago

Sorry for the late update.

How to recover: $ mint uninstall xcodegen # Or any other package that causes this problem $ mint bootstrap

Now all work just fine.

yonaskolb commented 4 years ago

Thanks for the tip @alexanderzhigulich. Another way then would be to force a reinstall

mint install xcodegen --force