How to upgrade my project to Swift 6.2

A few questions. One, can I safely upgrade to my project to Swift 6.2 without having to require iOS 26+? Two, where do I actually make the upgrade. This is what I see in build settings:

6.2 is not available in the dropdown?

Answered by DTS Engineer in 847508022

Right. There are two terms you need to understand here:

  • Swift compiler version

  • Swift language mode

This terminology is defined (recently mind you) in SE-0441

Consider this:

% DEVELOPER_DIR=/Users/quinn/XcodeZone/Xcode-beta.app/Contents/Developer xcrun swift --version
swift-driver version: 1.127.5.3 Apple Swift version 6.2 …

The Swift compiler version build in to Xcode 26.0b2 is 6.2. That compiler supports multiple language modes, and Xcode it show you those in that popup. There is no Swift 6.2 language mode, and that’s fine.

Having said that, the Swift 6 language mode in Swift 6.2 does have optional features that are likely important to you. The most important of those is the approachable concurrency features, controlled by the Approachable Concurrency (SWIFT_APPROACHABLE_CONCURRENCY) build setting.

Note that it’s possible that Swift might gain a future language mode to cover stuff like this, but that’s a topic for Swift Evolution rather then here on Apple Developer Forums.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Right. There are two terms you need to understand here:

  • Swift compiler version

  • Swift language mode

This terminology is defined (recently mind you) in SE-0441

Consider this:

% DEVELOPER_DIR=/Users/quinn/XcodeZone/Xcode-beta.app/Contents/Developer xcrun swift --version
swift-driver version: 1.127.5.3 Apple Swift version 6.2 …

The Swift compiler version build in to Xcode 26.0b2 is 6.2. That compiler supports multiple language modes, and Xcode it show you those in that popup. There is no Swift 6.2 language mode, and that’s fine.

Having said that, the Swift 6 language mode in Swift 6.2 does have optional features that are likely important to you. The most important of those is the approachable concurrency features, controlled by the Approachable Concurrency (SWIFT_APPROACHABLE_CONCURRENCY) build setting.

Note that it’s possible that Swift might gain a future language mode to cover stuff like this, but that’s a topic for Swift Evolution rather then here on Apple Developer Forums.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to upgrade my project to Swift 6.2
 
 
Q