Starting Swift REPL for iOS vs OSX -
how 1 invoke swift repl ios? tried command line argument of swift -sdk ... , have looked, via swift -h, @ other invocation arguments none jumps out @ me.
$ swift welcome swift! type :help assistance. 1> import uikit <repl>:1:8: error: no such module 'uikit' import uikit ^ the swift repl runs in playground in 'ios' mode on mac; looking same command line.
one way create ios/os x project , set break point interrupt flow. then, come in repl lldb console , enjoy.
for more on one, watch wwdc 2014 session 409 - introduction lldb , swift repl.
ios osx swift
No comments:
Post a Comment