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

时间:2023-01-23 19:07:51

AudioKit has had playgrounds since they were introduced, and we made hundreds of them, but as of about Xcode 8, they have become difficult to use. After about 4-5 playground views on average, Xcode will stop running any playgrounds and need to be restarted.

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

Here are the AudioKit's playground code: https://github.com/AudioKit/AudioKit/tree/master/Playgrounds

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

as well as screen recordings of how they should work: http://audiokit.io/playgrounds/

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

We basically use the set up as described in this blog to use the AudioKit framework in playgrounds: https://m.pardel.net/using-3rd-party-frameworks-in-swift-playgrounds-fd415f6dba10

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

The playgrounds are equally unstable if we use playgrounds on the Xcodeproj itself as if we are using the framework file.

如果我们在Xcodeproj上使用游乐场,就像我们使用框架文件一样,游乐场同样不稳定。

Does anybody have any clue as to what happened to make Xcode playgrounds unstable with frameworks or have any advice on how we could change our set up to make the playgrounds stable again?

有没有人知道发生什么事情让Xcode游乐场与框架不稳定,或者对如何改变我们的设置以使游乐场再次稳定有任何建议?

AudioKit playgrounds were a major part of what makes AudioKit easy to use and the loss of them has weighed heavily on me, so I am happy to offer a bounty (my first one, so bear with me).

AudioKit游乐场是使AudioKit易于使用的主要部分,失去它们给我带来了沉重的负担,所以我很乐意提供赏金(我的第一个,所以请耐心等待)。

1 个解决方案

#1


2  

I had not worked with Playgrounds in a while, but today I wanted to check some things out. I found Playgrounds hugely unstable, freezing up Xcode constantly. All I imported was UIKit, nothing fancy; just simple string parsing in a loop. Like yourself, I could get it to run a few times before needing to restart Xcode to regain responsiveness. This is in Xcode v9.3 (9E145).

我有一段时间没有和Playgrounds合作过,但今天我想检查一下。我发现Playgrounds非常不稳定,不断冻结Xcode。我进口的只是UIKit,没什么特别的;只是在循环中进行简单的字符串解析。就像你自己一样,在需要重新启动Xcode以重新获得响应之前,我可以让它运行几次。这是在Xcode v9.3(9E145)中。

#1


2  

I had not worked with Playgrounds in a while, but today I wanted to check some things out. I found Playgrounds hugely unstable, freezing up Xcode constantly. All I imported was UIKit, nothing fancy; just simple string parsing in a loop. Like yourself, I could get it to run a few times before needing to restart Xcode to regain responsiveness. This is in Xcode v9.3 (9E145).

我有一段时间没有和Playgrounds合作过,但今天我想检查一下。我发现Playgrounds非常不稳定,不断冻结Xcode。我进口的只是UIKit,没什么特别的;只是在循环中进行简单的字符串解析。就像你自己一样,在需要重新启动Xcode以重新获得响应之前,我可以让它运行几次。这是在Xcode v9.3(9E145)中。