Install Swift
Follow the instructions below to install the latest version of Swift on a supported platform.
You can also download nightly snapshots and older releases.
Latest Release: Swift 5.9.2
macOS
-
Xcode
Download the current version of Xcode which contains the latest Swift release.
Download Xcode
Additional install options for macOS:
- Package Installer - Package installers (.pkg) are available on download page.
Linux
-
Docker
The offical Docker images for Swift.
Instructions
Additional install options for Linux:
- Tarball - Tarball packages are available on download page.
- RPM - Swift 5.9.2 RPMs for Amazon Linux 2 and CentOS 7 are for experimental use only. Please provide your feedback.
Windows
-
Package Manager
Install Swift via Windows Package Manager (aka WinGet).
Instructions
Additional install options for Windows:
- Scoop - Install Swift via Scoop.
- Package Installer - Package installers (.exe) are available on download page.