Closed as not planned
Description
Description
Using swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-12-a.xctoolchain
on macOS, I'm unable to use swift testing because of this error.
Expected behavior
I expect swift test --disable-xctest
would build and run my tests.
Actual behavior
.build/checkouts/swift-testing/Sources/Testing/Test.swift:69:14: error: stored property 'xcTestCompatibleSelector' of 'Sendable'-conforming struct 'Test' has non-sendable type '__XCTestCompatibleSelector?' (aka 'Optional<Selector>')
67 | /// property is always `nil`.
68 | @_spi(ForToolsIntegrationOnly)
69 | public var xcTestCompatibleSelector: __XCTestCompatibleSelector?
| `- error: stored property 'xcTestCompatibleSelector' of 'Sendable'-conforming struct 'Test' has non-sendable type '__XCTestCompatibleSelector?' (aka 'Optional<Selector>')
70 |
71 | /// An enumeration describing the evaluation state of a test's cases.
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
| `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 | public init(_ str: String)
3 | public init(stringLiteral value: String)
Steps to reproduce
- Install
swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-12-a.xctoolchain
from swift.org - Run
swift test --disable-xctest
swift-testing version/commit hash
Swift & OS version (output of swift --version ; uname -a
)
Apple Swift version 6.0-dev (LLVM 6e13b8be259f20f, Swift e7c2412597ed910)
Target: arm64-apple-macosx14.0
Darwin m14 23.6.0 Darwin Kernel Version 23.6.0: Thu Jun 6 16:11:38 PDT 2024; root:xnu-10063.140.26.0.1~13/DEVELOPMENT_ARM64_T6000 arm64