Apple released Swift 5.0 development snapshot (toolchain) for the developers to get a taste of the new language.
An Xcode toolchain (
.xctoolchain) includes a copy of the compiler, lldb, and other related tools needed to provide a cohesive development experience for working in a specific version of Swift.
Bundling Swift 5 toolchain with Xcode
- Download Swift 5.0 snapshot from here. (Swift 5.0 is available as a development snapshot at the time of writing this article.)
- Open the downloaded package. Follow the onscreen instructions and complete the installation.
- Open Xcode and navigate to Xcode -> Preferences -> Components. Here, you can find all the toolchains installed on your mac.
- Select Swift 5.0 Snapshot and click close.
Congratulations! We have successfully installed Swift 5 toolchain in Xcode.