Audiokit 4.7 Playgrounds not compiling. error: Couldn't lookup symbols:

Audiokit 4.7 Playgrounds not compiling. error: Couldn't lookup symbols:

当我 运行 包含实时视图的 AudioKit playground 时,XCode 无法编译 AudioKit UI 框架。示例如下:

error: Couldn't lookup symbols:
  AudioKitUI.AKLiveViewController.addView(__C.NSView) -> ()
  AudioKitUI.AKLiveViewController.stackView.modify : Swift.Optional<__C.NSStackView>
  AudioKitUI.AKLiveViewController.stackView.getter : Swift.Optional<__C.NSStackView>
  AudioKitUI.AKLiveViewController.stackView.setter : Swift.Optional<__C.NSStackView>
  AudioKitUI.AKLiveViewController.addLabel(Swift.String) -> __C.NSTextField
  AudioKitUI.AKLiveViewController.addTitle(Swift.String) -> ()
  AudioKitUI.AKLiveViewController.textField.modify : Swift.Optional<__C.NSTextField>
  AudioKitUI.AKLiveViewController.textField.getter : Swift.Optional<__C.NSTextField>
  AudioKitUI.AKLiveViewController.textField.setter : Swift.Optional<__C.NSTextField>
  type metadata for AudioKitUI.AKLiveViewController
  type metadata accessor for AudioKitUI.AKOutputWaveformPlot
  AudioKitUI.AKOutputWaveformPlot.__allocating_init(_: Swift.Optional<AudioKit.AKNode>, frame: __C.CGRect, bufferSize: Swift.Int) -> AudioKitUI.AKOutputWaveformPlot
  AudioKitUI.AKSlider.__allocating_init(property: Swift.String, value: Swift.Double, range: Swift.ClosedRange<Swift.Double>, taper: Swift.Double, format: Swift.String, color: __C.NSColor, frame: __C.CGRect, callback: (Swift.Double) -> ()) -> AudioKitUI.AKSlider
  type metadata accessor for AudioKitUI.AKSlider
  AudioKitUI.AKStylist.sharedInstance.unsafeMutableAddressor : AudioKitUI.AKStylist
  _OBJC_METACLASS_$__TtC10AudioKitUI20AKLiveViewController

该项目构建良好,没有 UI 组件的 Playgrounds 工作正常。

我遇到了同样的问题。我通过进入一般项目设置并添加 AudioKitUI.framework

来修复它

更准确地说:在 xCode 项目左侧的项目导航器中,我选择了项目 AudioKitPlaygrounds。然后,这应该会显示项目设置并选中常规选项卡。然后我转到 "Linked Frameworks and Libraries" 并单击加号并在 AudioKitPlaygrounds 文件中浏览 AudioKitUI.framework。添加此框架。再次构建项目。然后它应该工作。