Use Swift 2.2 in Xcode 8?

salabaha picture salabaha · Jun 15, 2016 · Viewed 51.1k times · Source

Is it possible to use Swift 2.2 in Xcode 8?

From Xcode 8 release notes:

"Xcode 8 supports switching toolchains, such as those from swift.org, without relaunching Xcode. (23135507)"

I have been trying to find swift 2.2 toolchain on swift.org website but couldn't. Have any one success in configuring Xcode 8 to work with swift 2.2

Answer

Jim picture Jim · Jun 15, 2016

If you want to continue to use Swift 2 in Xcode 8, then use Swift 2.3 by enabling the Use Legacy Swift Language Version build setting (SWIFT_VERSION = 2.3).