Swift versions supported by Xcode

Sometimes it is necessary to use an older version of Xcode for reasons of the application’s running environment or the OS version supported by the library (framework).

While using such an older version of Xcode, I sometimes wondered what Swift language versions are supported, so I looked it up.

TOC

About Swift Version Compatibility

Swift was not compatible with code under 4 due to destructive updates, etc., and there was no ABI stabilization in the early days, which meant that you could not use frameworks targeting different versions.

However, at the time of this writing, the situation has changed significantly: with Swift 4 or later, you can combine frameworks targeting different language versions.

However, some features are not available in older versions of Swift.

About Swift Concurrency

Fixed on September 19, 2022, as the version required for Swift concurrency was Swift 5.5, not Swift 5.7.

Concurrency requires Swift 5.5 or later and the Swift standard library for the concurrency type. Therefore, on Apple platforms, the Deployment Target must be set to at least the following values.

OSDeployment Target
iOS13
macOS10.15
tvOS13
watchOS6.0
OS versions compatible with Swift Concurrency

System Requirements for the Xcode

The system requirements for each Xcode version is summarized on the following page.

(Now Translating)

Swift 5.x

The Xcode versions that supports Swift 5.x are as follows.

Swift Version Xcode Version
5.7 Xcode 14
5.6 Xcode 13.3
5.5 Xcode 13.0
5.4 Xcode 12.5
5.3 Xcode 12.0
5.2 Xcode 11.4
5.1 Xcode 11.2
5.0 Xcode 10.2
The Xcode versions that supports Swift 5.x

Xcode 10.2 was introduced around the time of macOS Mojave 10.4, so you can see that Swift 5.x has come a long way over the years.

Swift 4.x

The Xcode versions that supports Swift 4.x are as follows.

Swift Version Xcode Version
4.2 Xcode 10.0
4.1 Xcode 9.3
4.0 Xcode 9.0
The Xcode versions that supports Swift 4.x

Swift 3.x

The Xcode versions that supports Swift 3.x are as follows.

Swift Version Xcode Version
3.1 Xcode 8.3
3.0 Xcode 8.0
The Xcode versions that supports Swift 3.x

Swift 2.x

The Xcode versions that supports Swift 2.x are as follows.

Swift Version Xcode Version
2.2 Xcode 7.3
2.1 Xcode 7.1
2.0 Xcode 7.0
The Xcode versions that supports Swift 2.x

Swift 1.x

The Xcode versions that supports Swift 1.x are as follows.

Swift Version Xcode Version
1.2 Xcode 6.3
1.1 Xcode 6.1.1
1.0 Xcode 6.0
The Xcode versions that supports Swift 1.x
Let's share this post !

Author of this article

Akira Hayashiのアバター Akira Hayashi Representative, Software Engineer

I am an application developer loves programming. This blog is a tech blog, its articles are learning notes. In my work, I mainly focus on desktop and mobile application development, but I also write technical books and teach seminars. The websites of my work and books are here -> RK Kaihatsu.

TOC