Framework not found AudioUnit

佐手、 提交于 2019-12-18 03:49:21

问题


Been banging my head agains the wall for awhile now. My Xcode project went a little haywire while refactoring, and refused to build. I've squashed all the other errors, except one last linktime error:

Framework not found AudioUnit

I have the AudioUnit headers, the AudioUnit.framework is included in my project as it was before (Targets > Get Info > General > Linked Libraries > + ), but I cannot figure out why it does not work now. AudioToolbox.framework is also included.


回答1:


Remove AudioUnit.framework and add CoreAudio.framework




回答2:


Helped for me: removing AudioUnit.framework, then adding AudioToolbox.framework, Clean, Build

In my case compiler lies about AudioUnit, in fact for project was required only AudioToolbox.framework.




回答3:


I had already tried swapping out all available audio frameworks (AudioToolbox, CoreAudio and AudioUnit) and no configuration worked. Something funky with Xcode was going on.

I reinstalled Xcode and migrated the code to a new project. Now it builds fine with the exact same frameworks as I had before. A frustrating solution, but a working one nonetheless.



来源:https://stackoverflow.com/questions/1756212/framework-not-found-audiounit

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