[2024/03/06 Updated] Swift versions supported by Xcode

Sometimes, the application’s running environment or the OS version supported by a particular library (framework) necessitates using an older version of Xcode.

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

目次

About Swift Version Compatibility

In its early days, Swift did not offer compatibility with code from versions earlier than Swift 4 due to significant updates and the lack of ABI stabilization. As a result, it was impossible to use frameworks targeting different versions.

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

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

About Swift Concurrency

As of September 19, 2022, the required version for Swift concurrency has been corrected to 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, you must set the Deployment Target to at least the following values.

OS Deployment Target
iOS 13
macOS 10.15
tvOS 13
watchOS 6.0
OS versions compatible with Swift Concurrency

System Requirements for Xcode

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

Swift 5.x

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

Swift Version Xcode Version
5.10Xcode 15.3
5.9Xcode 15
5.8.1Xcode 14.3.1
5.8Xcode 14.3
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

Apple introduced Xcode 10.2 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

Highly Relevant Articles

著書紹介

Authored Books

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

この記事を書いた人

Akira Hayashi (林 晃)のアバター Akira Hayashi (林 晃) Representative(代表), Software Engineer(ソフトウェアエンジニア)

アールケー開発代表。Appleプラットフォーム向けの開発を専門としているソフトウェアエンジニア。ソフトウェアの受託開発、技術書執筆、技術指導・セミナー講師。note, Medium, LinkedIn
-
Representative of RK Kaihatsu. Software Engineer Specializing in Development for the Apple Platform. Specializing in contract software development, technical writing, and serving as a tech workshop lecturer. note, Medium, LinkedIn

目次