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

SourceDocs install fails on Big Sur #79

Open
vernonlingleysonos opened this issue Sep 19, 2022 · 0 comments
Open

SourceDocs install fails on Big Sur #79

vernonlingleysonos opened this issue Sep 19, 2022 · 0 comments

Comments

@vernonlingleysonos
Copy link

vernonlingleysonos commented Sep 19, 2022

Brief Description

I am getting what looks to be a Monterey specific error when trying to install SourceDocs on Big Sur. I am running Big Sur 11.6.8 with Xcode 13.1 with Swift 5.5.1. From the matrix on the README it should work, however I get the following error:

==> swift build --disable-sandbox -c release
Last 15 lines from /Users/homebrew/Library/Logs/Homebrew/sonos-sourcedocs/01.swift:
/private/tmp/sonos-sourcedocs-20220919-42351-wyrqry/SourceDocs-2.0.1/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/AsyncParsableCommand.swift:23:17: note: add @available attribute to enclosing instance method
  mutating func run() async throws
                ^
/private/tmp/sonos-sourcedocs-20220919-42351-wyrqry/SourceDocs-2.0.1/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/AsyncParsableCommand.swift:33:29: error: concurrency is only available in macOS 12.0.0 or newer
  public static func main() async {
                            ^
/private/tmp/sonos-sourcedocs-20220919-42351-wyrqry/SourceDocs-2.0.1/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/AsyncParsableCommand.swift:33:22: note: add @available attribute to enclosing static method
  public static func main() async {
                     ^
/private/tmp/sonos-sourcedocs-20220919-42351-wyrqry/SourceDocs-2.0.1/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/AsyncParsableCommand.swift:63:29: error: concurrency is only available in macOS 12.0.0 or newer
  public static func main() async {
                            ^
/private/tmp/sonos-sourcedocs-20220919-42351-wyrqry/SourceDocs-2.0.1/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/AsyncParsableCommand.swift:63:22: note: add @available attribute to enclosing static method
  public static func main() async {

Does the concurrency is only available in macOS 12.0.0 or newer error mean that 2.0.1 doesn't work on Big Sur?

Steps to Reproduce

  1. brew install sourcedocs

Expected Outcome

I expect that SourceDocs would be installed.

Actual Outcome

I get the error listed above.

Environment

  • Operating System: macOS 11.6.8
  • Xcode Version: 13.1
  • SwiftDocs Version/SHA: Where is this listed? Isn't this bundled with Swift?
  • Swift version: 5.5.1

Additional Comments

Demo Project

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

No branches or pull requests

1 participant