

Please send any questions, comments, or corrections proud part of James Dempsey’s Cavalcade of Profitless Pursuits. You can set up alternate toolchains to use different versions of Swift in Xcode. The Development section lists the currently announced next Swift version and latest Xcode beta that includes that version. Swift versions link to the Swift Evolution status page, filtered to show the proposals implemented in that version. Version history includes only Swift versions with a corresponding Xcode release. It has a convenient interface, autocompletion support, and many other features that make Swift engineering smooth. In most cases, the native Apple’s IDE Xcode will be enough for Swift engineering. Here we’ll discuss IDEs that can be used for Swift. The version of Swift listed as Development is the next ‘feature release’īecause Swift releases are commonly referred to by the major + minor version number as a ‘release’, the listed Current and Development versions typically do not include patch releases. The latest version, Swift 5.5 is still in beta (as of September 2021). It is located at /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc, which is a mouthful and difficult to remember.The version of Swift listed as Current is the version included in the most current released version of Xcode.

Luckily, we can find this by calling swiftc -version, but for the Xcode Beta we need to know the full path bundled with the app. If you are not following Swift development and Swift Evolution closely, then it isn’t immediately clear which version is shipping with Xcode. I expected this information to be available in the “Overview” section of the release notes, which is where all the SDK versions are listed, but the Swift version not present. Strangely, the Xcode beta release notes do not explicitly mention the Swift version included with the release. I was pretty sure that it is Swift 5.6, but I wanted to know for certain. But recently, I needed to determine the version of Swift that is bundled with Xcode - specifically the version of Swift that is shipping with the current Xcode 13.3 beta.

Before exploring the difference between xcode and swift. I previously wrote about writing a custom shell command to quickly switch between Xcodes. Swift v 5.1 is the default version of Swift that include in Xcode v 11.
