问:
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:And make sure that your import for CoreAudio is #import <CoreAudio/CoreAudioTypes.h>
回答3:To those arriving from Google: You may also find it necessary to add AudioToolkit.framework instead of or in addition to CoreAudio.framework