How does one invoke the Swift REPL for iOS? I tried the command line argument of swift -sdk ...
and have looked, via swift -h
, at the other invocation arguments but none jumps out at me.
$ swift
Welcome to Swift! Type :help for assistance.
1> import UIKit
<REPL>:1:8: error: no such module 'UIKit'
import UIKit
^
The Swift REPL runs in a Playground in 'iOS' mode on a Mac; just looking to get the same from the command line.