

It’s time to use the newly downloaded Swift toolchain. Now that, we have successfully downloaded Swift 3.1 development snapshot. Now you will see another tab for the “Toolchains” where we can pick the desired Swift toolchain for our local development without changing the Xcode version. Xcode -> Preferences -> Components section. app / Contents / Developer / Toolchains has user-specific toolchains. We can access the newly added toolchain from Xcode preferences as shown belowĪnother way, we can set the new toolchain in the Xcode preferences. $ / Library / Developer / Toolchains / swift - 3.1 - DEVELOPMENT - SNAPSHOT - 2017 - 06 - 14 - a. e.g for beta versions we can switch to beta Xcode using However, if we have multiple Xcode versions installed we can switch the Xcode developer directory using xcode-select utility. Xcode developer directory for the located at We can always find the version of Swift with Xcode in the release notes. The new release of Xcode always has a latest stable version of Swift e.g Xcode 9.3 shipped with Swift 4.1. Xcode and Swiftīefore jumping into changing Swift versions, let’s talk about how the Xcode and Swift version are related to each other. In this post, we will see how we can switch between multiple Swift version without changing Xcode versions. Apple ship new Xcode version with the newest version of Swift all the all the time, it often requires iOS developers to switch the Xcode versions or keep multiple version of Xcode at the same time. Swift is evolving day by day but we have to make sure our apps or libraries still work with constantly changing Swift. However, since Apple has open-sourced Swift, it is going through major breaking changes.

There is no doubt that Swift is amazing programming language to develop iOS apps.
