Swift REPL Targets
January 22, 2017
Have you seen the message
error: repl.swift:2:31: error: '<type>' is only available on OS X <version> or newer? In current releases of Xcode, the Swift REPL uses a hard-coded 10.9 target instead of the current OS.
The solution is fairly easy:
xcrun swift -target x86_64-apple-macosx10.12
Substitute whatever OS version or platform you need.
This blog represents my own personal opinion and is not endorsed by my employer.