yonaskolb / Mint

A package manager that installs and runs executable Swift packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mint on Catalina

alexeyzhilnikov opened this issue · comments

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.

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

Depending on the error I could suggest reinstalling mint?

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.

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.

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.

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

mint install xcodegen --force