Audiokit 4.7 Playgrounds无法编译。错误:无法查找符号:

时间:2019-06-20 14:12:11

标签: swift-playground audiokit swift5

当我运行包含实时视图的AudioKit游乐场时,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可以正常工作。

1 个答案:

答案 0 :(得分:2)

我有同样的问题。我通过进入常规项目设置并添加AudioKitUI.framework

对其进行了修复。

更准确地说:在xCode项目左侧的项目导航器中,我选择了AudioKitPlaygrounds项目。然后应在选择“常规”选项卡的情况下显示项目设置。然后,我进入“链接的框架和库”,单击加号并在AudioKitPlaygrounds文件中浏览AudioKitUI.framework。添加此框架。再次生成该项目。然后它应该起作用。

enter image description here