I'm trying to set up a Swift Package that target's macOS Big Sur.
From the documentation, it looks like v11 should be the new property. https://developer.apple.com/documentation/swift_packages/supportedplatform/macosversion/3632902-v11
But it crashes with the following error.
Oddly, an undocumented v10_16 works!
Looking at the open source code, it appears both values should work.
https://github.com/apple/swift-package-manager/blob/6cfe2de63e53dd9cb75e7bf910277e699d9383a2/Sources/PackageDescription/SupportedPlatforms.swift#L212-L223
Is there a bug in this release of Xcode's Swift tool chain? What platform property should I be using to target Big Sur?
Xcode Version 12.0 beta (12A6159)
From the documentation, it looks like v11 should be the new property. https://developer.apple.com/documentation/swift_packages/supportedplatform/macosversion/3632902-v11
Code Block swift platforms: [.macOS(.v11)],
But it crashes with the following error.
Code Block error: manifest parse error(s): Package.swift:9:17: error: reference to member 'v11' cannot be resolved without a contextual type .macOS(.v11)
Oddly, an undocumented v10_16 works!
Code Block swift platforms: [.macOS(.v10_16)],
Looking at the open source code, it appears both values should work.
https://github.com/apple/swift-package-manager/blob/6cfe2de63e53dd9cb75e7bf910277e699d9383a2/Sources/PackageDescription/SupportedPlatforms.swift#L212-L223
Is there a bug in this release of Xcode's Swift tool chain? What platform property should I be using to target Big Sur?
Xcode Version 12.0 beta (12A6159)
Code Block $ swift --version Apple Swift version 5.3 (swiftlang-1200.0.16.9 clang-1200.0.22.5) Target: x86_64-apple-darwin19.5.0