ios - Swift Playgrounds 中的 JavaScriptCore

标签 ios swift swift-playground

我目前正在开发一个应该可以在我的 iPad 上运行的 Swift Playground。它使用的是关于 Apple 应该可用的 JavaScriptCore:

https://developer.apple.com/library/content/documentation/Xcode/Conceptual/swift_playgrounds_doc_format/AvailableSDKs.html#//apple_ref/doc/uid/TP40017343-CH5-SW2

有谁知道如何导入和使用它?我的 iPad 总是说找不到模块。我使用的是最新的 iOS 版本 10.3。

最佳答案

我认为某些库在 iPad 的 playground 版本中不可用,您共享的链接显示了 XCode swift playground 的文档。像你一样,我尝试在 iPad 上使用 JavaScriptCore,但就像 HomeKit 和其他库一样,它不可用,最后记住 iPad 的 Playground 旨在以一种简单有趣的方式学习如何编程,它不适合专业开发,希望这会很快改变,毕竟它有很大的潜力。

关于ios - Swift Playgrounds 中的 JavaScriptCore,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43161276/

相关文章:

ios - 检查 `UICollectionView` 索引路径是否有效?

ios - 从一个 View Controller 传递字符串并将其显示在 ios 的 UITextView 中

ios - 如何将 UIPopoverArrowDirection 定位到弹出 View 的右上角

xcode - 我可以将我的项目代码导入到 Swift REPL 中吗?

swift - 如何在我的 Playground 上实现不同的 UI 屏幕

ios - UIScrollView 子类从不接收滑动的 touchesBegan 消息

ios - 如何更新 IOS 图表中的限制线,danielgindi/Charts

Swift 序列协议(protocol)的 Swift 2 到 3 迁移

ios - GMSCameraPosition 不准确

swift: if-let 并行赋值