What's the first step to migrate my app to use Swift 6?
Asked on 2024-07-30
1 search
The first step to migrate your app to use Swift 6 is to enable complete concurrency checking. This is a per-module setting that leaves your project in Swift 5 mode but enables warnings for all the code that would fail with Swift 6's enforced data isolation. You should go through and resolve all these warnings for each target before enabling Swift 6 mode.
For a detailed step-by-step process, you can refer to the session Migrate your app to Swift 6 at the timestamp 07:17.

Migrate your app to Swift 6
Experience Swift 6 migration in action as we update an existing sample app. Learn how to migrate incrementally, module by module, and how the compiler helps you identify code that’s at risk of data races. Discover different techniques for ensuring clear isolation boundaries and eliminating concurrent access to shared mutable state.

What’s new in Swift
Join us for an update on Swift. We’ll briefly go through a history of Swift over the past decade, and show you how the community has grown through workgroups, expanded the package ecosystem, and increased platform support. We’ll introduce you to a new language mode that achieves data-race safety by default, and a language subset that lets you run Swift on highly constrained systems. We’ll also explore some language updates including noncopyable types, typed throws, and improved C++ interoperability.

Platforms State of the Union
Discover the newest advancements on Apple platforms.