Swift 4 minimal macOS compatibility

I can’t for the life of me find this information anywhere. Does Swift 4 run on El Capitan (10.11)?

Depends what you're asking. You might be able to run Swift 4 itself (that is, the toolchain) on older macOS versions for non-Xcode development.


If you're asking what's the oldest deployment target, the oldest macOS that Swift-compiled apps will run on, the answer is here:


https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/index.html


That is, Swift can deploy back to macOS 10.9.


If you're asking what's the oldest macOS to run Swift 4 within Xcode, you need Xcode 9, which needs to run on 10.12.4+, which forces you to SDK 10.13+.

Swift 4 is Xcode 9.x - minimum macOS for Xcode 9, as noted, is 10.12.4 - I would not expect earlier macOSs to 'run' Swift 4, at least not by default.


The Xcode wiki has other examples:

h ttps://en.wikipedia.org/wiki/Xcode


From swift.org:

https://swift.org/download/#releases

Requirements for Tools

Swift 4.0

Swift 3.1

Swift 3.0

Swift 2.2.x

This section of "The Swift Programming Language" has been inexplicably removed from the Swift 4.0.3 version of the manual, and I cannot locate any current definitive statement of minimum target version compatibility, which seems unnecessarily confusing.

Quite. Please file a bug against the docs requesting that this info be reinstated.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

The Xcode wiki may have the details you're looking for.

Swift 4 minimal macOS compatibility
 
 
Q