Swift 5.3 in High Sierra

I've been trying to install it but I'm getting all sorts of errors. Is it even possible?

Following the Swift.org instructions I installed the latest toolchain and exported the paths, but I keep getting this error

swift -v
Apple Swift version 5.3.3 (swift-5.3.3-RELEASE)
Target: x86_64-apple-darwin17.7.0
<unknown>:0: error: Swift does not support the SDK 'MacOSX10.14.sdk'

I plan to use VSCode to develop, as I'm aware that xcode only goes up to 10.1 in High Sierra.

Did you install the binary toolchain image, or build the toolchain from source? If you installed the binary toolchain image, it depends on the the minimum SDK version specified in its build for Darwin platforms, in this case, the SDK included with Xcode 10.14. If you build it from the source code, you might get farther, however, the code may assume certain features of SDK 10.14 that SDK 10.1 doesn't provide.

1 Like

I used the .pgk installer that the site provides. I'll try to build the toolchain from source

Terms of Service

Privacy Policy

Cookie Policy