title: iPhone static archive lib: Undefined symbol link error
body: <p>I haven't found a solution for the exact problem I'm having, so perhaps someone here can help me. </p>
  
  <p>I've created a static archive library that uses the AVAudioPlayer class and links against the AVFoundation framework. However, when I link my app against this static library, I receive the following linker error:</p>
  
  <pre><code>Undefined symbols:
  
  "_OBJC_CLASS_$_AVAudioPlayer", referenced from:
  
  objc-class-ref-to-AVAudioPlayer in ...
  
  ld: symbol(s) not found
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>How can I get this to compile without having to explicitly link to the AVFoundation framework in the application? I've already linked to it in the static lib, so that should be automatically picked up by the app. </p>