Starting Swift REPL for iOS vs OSX

前端 未结 1 1622
情书的邮戳
情书的邮戳 2021-02-14 10:51

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

相关标签:
1条回答
  • 2021-02-14 11:39

    One way to do this is to create an iOS/OS X project and set a break point to interrupt the flow. Then, enter repl into the lldb console and enjoy.

    For more on this one, watch WWDC 2014 session 409 - Introduction to LLDB and the Swift REPL.

    repl

    0 讨论(0)
提交回复
热议问题