Sender Synth example can't build - symbol(s) not found for architecture arm64

℡╲_俬逩灬. 提交于 2020-04-16 04:46:14

问题


I have follow the Sender synth example, with XCode 10.1, Audiokit 4.5.5. But when I try to build it (part Audiobus and Integration), it fails with this error:

   Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_ABPort", referenced from:
      objc-class-ref in Audiobus.o
  "_OBJC_CLASS_$_ABAudiobusController", referenced from:
      objc-class-ref in Audiobus.o
  "_OBJC_CLASS_$_ABAudioSenderPort", referenced from:
      objc-class-ref in Audiobus.o
  "_OBJC_CLASS_$_ABAudioFilterPort", referenced from:
      objc-class-ref in Audiobus.o
  "_ABConnectionsChangedNotification", referenced from:
      SenderSynth.Audiobus.(startObservingAudiobusConnections in _37936C4CF5A242669D2CAF61EB84EA24)() -> () in Audiobus.o
      SenderSynth.Audiobus.(stopObservingAudiobusConnections in _37936C4CF5A242669D2CAF61EB84EA24)() -> () in Audiobus.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I tried to build with my iphone SE connected via usb and with Audiobus app installed on it. I tried also targeting simulator, but same error occurs with x86_64 rather than arm64. I searched and try many things but did not find any solution. I read many times the tutorial but I don't see anything I forgot. What is missing. Could someone help me please?


回答1:


These are symbols from the AudioBus SDK; you need to link with the SDK and using your API key to resolve these errors.




回答2:


If you have this issue, try adding "$(inherited)" to your targets build settings under "other linker flags".

https://heroes.audiob.us/discussion/706/sendersynth-tutorial-audiobus-error/p1



来源:https://stackoverflow.com/questions/53794509/sender-synth-example-cant-build-symbols-not-found-for-architecture-arm64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!