mxcl / swift-sh

Easily script with third-party Swift dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: reference to member 'v11_1' cannot be resolved without a contextual type.macOS(.v11_1)

VarshaBhatiaPapershift opened this issue · comments

The script doesn't run in macOS Big Sur Version 11.1
Getting the below error:

Screenshot 2021-01-15 at 1 38 36 PM

Screenshot 2021-01-15 at 1 47 01 PM

The workaround I found is to either remove or comment out the below code:

#if swift(>=5) && os(macOS)
pkg.platforms = [
   .macOS(.v11_1)
]
#endif

I just provided a fix for this issue in #143.

Install my fix before it's merged by running:

brew uninstall --ignore-dependencies swift-sh
brew install mint
mint install Jeehut/swift-sh@master
swift-sh --clean-cache

Once a proper fix is released, go back to original swift-sh by running:

mint uninstall Jeehut/swift-sh
brew install swift-sh
swift-sh --clean-cache

I cannot reproduce this, can someone provide a script that does? Otherwise I don’t see how I can fix it.

I run Big Sur.

Try 2.3.0, reopen if not fixed.