The Google Cloud client libraries for Swift support the last three minor releases of Swift (Swift 6.2, 6.3, and 6.4). This document provides information and best practices to keep your toolchain and libraries up to date.
Minimum supported Swift version
The minimum supported version is Swift 6.2. For more information about Google Cloud client libraries, see Client libraries and Cloud APIs explained.
The Swift client libraries increment the major version when dropping compatibility with a Swift major version. For more information about the use of major and minor versions, see the Semantic Versioning specification at semver.org.
The libraries are tested against the Swift versions available at the time the
client libraries are released. To find out which versions were used in testing,
see the
google-cloud-swift README on GitHub.
Recommended version for new development
When starting a new project, choose the current release of Swift. Using the current release ensures that your runtime is within the supported Swift releases and receives critical security patches.
Toolchain updates in production
To ensure that you receive critical security and bug fixes, keep your production
systems on supported Swift toolchains. In the documentation on Swift.org, see
how to use
swiftly update
to automatically update your version of Swift. You can also use
swift package update
to automatically update the Swift dependencies in your project.
What's next
- Follow the Quickstart: Get started with Swift to set up and run your first Swift application.
- Read the Swift on Google Cloud overview to explore supported environments and key features.
- Browse the Google Cloud client libraries for Swift reference documentation.