Closed toffaletti closed 1 week ago
I coincidentally just encountered this build failure also, but only when attempting to build using a newer Swift 6 development snapshot toolchain paired with an older Xcode 15.x. The newer Xcode 16 Beta contains SDKs whose ObjectiveC
module has the Selector
type marked Sendable
, but earlier versions did not, so building using Xcode 16 Beta succeeds.
The other relevant factor which changed recently is that swift-testing's Package.swift
changed to swift-tools-version: 6.0
in #467, and that in turn caused all of the package's targets to begin using the Swift 6 language mode.
I do not yet understand why this failure is not being hit by our CI system though, since it's using Xcode 15.1.
That makes sense, I also have an older Xcode:
Xcode 15.4
Build version 15F31d
At this point, unless we identify some hard blocker which forces us to continue supporting versions of Xcode earlier than 16 Beta, we are inclined to close this and not make any workaround code changes. To anyone who encounters this problem, please ensure you are building using Xcode 16 Beta or later. This requirement has already been documented as part of the changes in #466
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
Steps to reproduce
swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-12-a.xctoolchain
from swift.orgswift test --disable-xctest
swift-testing version/commit hash
da1d5acb333dc480081aebf0670ea43d0a733c85
Swift & OS version (output of
swift --version ; uname -a
)