如何设置 Xcode 游乐场以稳定的方式使用构建的框架?

How would one set up Xcode playgrounds to use a built framework in a stable way?

AudioKit 自推出以来就有了 playground,我们制作了数百个,但大约 Xcode 8 后,它们变得难以使用。平均观看 4-5 次游乐场后,Xcode 将停止 运行 任何游乐场并需要重新启动。

以下是 AudioKit 的 playground 代码: https://github.com/AudioKit/AudioKit/tree/master/Playgrounds

以及它们应该如何工作的屏幕录像: http://audiokit.io/playgrounds/

我们基本上使用本博客中描述的设置在 playgrounds 中使用 AudioKit 框架: https://m.pardel.net/using-3rd-party-frameworks-in-swift-playgrounds-fd415f6dba10

如果我们在 Xcodeproj 本身上使用 playgrounds 就好像我们在使用框架文件一样,playgrounds 同样不稳定。

有没有人知道是什么导致 Xcode playgrounds 不稳定,或者对我们如何改变我们的设置以使 playgrounds 再次稳定有任何建议?

AudioKit playgrounds 是使 AudioKit 易于使用的重要组成部分,失去它们对我来说很沉重,所以我很乐意提供赏金(我的第一个,所以请耐心等待)。

我有一段时间没有使用 Playgrounds,但今天我想看看一些东西。我发现 Playgrounds 非常不稳定,经常冻结 Xcode。我只导入了 UIKit,没什么特别的;只是在循环中进行简单的字符串解析。像你一样,在需要重新启动 Xcode 以重新获得响应之前,我可以让它达到 运行 几次。这是在 Xcode v9.3 (9E145) 中。