Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
VarshaBhatiaPapershift opened this issue Jan 15, 2021 · 3 comments

Comments

@VarshaBhatiaPapershift
Copy link

VarshaBhatiaPapershift commented Jan 15, 2021

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
@Jeehut
Copy link

Jeehut commented Jan 16, 2021

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

@mxcl
Copy link
Owner

mxcl commented May 25, 2021

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.

@mxcl
Copy link
Owner

mxcl commented May 25, 2021

Try 2.3.0, reopen if not fixed.

@mxcl mxcl closed this as completed May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants