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
- 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
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:
Does the
concurrency is only available in macOS 12.0.0 or newererror mean that 2.0.1 doesn't work on Big Sur?Steps to Reproduce
Expected Outcome
I expect that SourceDocs would be installed.
Actual Outcome
I get the error listed above.
Environment
Additional Comments
Demo Project