【发布时间】:2014-06-24 11:42:26
【问题描述】:
如何为 iOS 调用 Swift REPL?我尝试了swift -sdk ... 的命令行参数,并通过swift -h 查看了其他调用参数,但没有一个跳出来。
$ swift
Welcome to Swift! Type :help for assistance.
1> import UIKit
<REPL>:1:8: error: no such module 'UIKit'
import UIKit
^
Swift REPL 在 Mac 上以“iOS”模式在 Playground 中运行;只是想从命令行获得相同的结果。
【问题讨论】: