views:

308

answers:

2

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.

+2  A: 

Remove AudioUnit.framework and add CoreAudio.framework

weichsel
And make sure that your import for CoreAudio is #import <CoreAudio/CoreAudioTypes.h>
TechZen
+1 because this worked for me
lawrence
A: 

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.

alexbw