Can I use Swift Data on linux?
Asked on 08/03/2024
1 search
Yes, you can use Swift Data on Linux. Swift is officially supported on Apple platforms, Linux, and Windows. Additionally, Apple has introduced a fully static Linux SDK for Swift, which allows you to cross-compile from macOS to Linux. This means you can develop your Swift applications on macOS and deploy them on a Linux server without needing an additional runtime to be installed.
For more details, you can refer to the session What’s new in Swift at the 07:30 timestamp.

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.

Explore the Swift on Server ecosystem
Swift is a great language for writing your server applications, and powers critical services across Apple’s cloud products. We’ll explore tooling, delve into the Swift server package ecosystem, and demonstrate how to interact with databases and add observability to applications.