Can I use Swift Data on linux?

Generated on 8/3/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

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

Platforms State of the Union

Discover the newest advancements on Apple platforms.

Explore the Swift on Server ecosystem

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.

What’s new in SwiftData

What’s new in SwiftData

SwiftData makes it easy to add persistence to your app with its expressive, declarative API. Learn about refinements to SwiftData, including compound uniqueness constraints, faster queries with #Index, queries in Xcode previews, and rich predicate expressions. Join us to explore how you can use all of these features to express richer models and improve performance in your app. To discover how to build a custom data store or use the history API in SwiftData, watch “Create a custom data store with SwiftData” and “Track model changes with SwiftData history”.