Closed vanvoorden closed 4 months ago
This is, unforutnately, a known issue with Xcode 16 😕 But I really hesitate to modify the guide to highlight this...
This is, unforutnately, a known issue with Xcode 16
Hmm… interesting. So the understanding is this is a bug and the expectation is (we hope) this is fixed before 6.0 goes live in Q3?
The legit workaround (for now) is to explicitly select 6 mode in each package? Correct?
Hmm… interesting. So the understanding is this is a bug and the expectation is (we hope) this is fixed before 6.0 goes live in Q3?
Yeah 😅 But if it turns out this is the intended behavior, we'll definitely update the guide.
The legit workaround (for now) is to explicitly select 6 mode in each package? Correct?
Yes, that's what I've been doing. It don't think this comes with any downsides.
I just realized this is a duplicate of https://github.com/apple/swift-migration-guide/issues/84
I originally ran into this trying to repro a compiler error in Swift 6 mode.^1
According to the migration guide:
I created a sample SwiftPM executable package:
Since this package requires 6.0… my thinking is that this should build in Swift 6 mode. It seems like this does build in Swift 6 mode from command line. Building from
Xcode_16_beta_2
does not build in Swift 6 mode unless I explicitly opt in to Swift 6 mode:Now I see the compiler error from Xcode.
Is this expected behavior? If engineers build (and run) packages from Xcode my thinking is we can communicate in the Migration Guide that package might not build in Swift 6 mode like they might expect it to.