title: Link-error creating a Cocoa Touch Framework with nested libraries
body: <p>I am stucked in creating a Cocoa Touch framework</p>
  
  <p><img src="https://i.stack.imgur.com/CN2QK.png" alt="enter image description here"></p>
  
  <p>receiving this error</p>
  
  <pre><code>Undefined symbols for architecture armv7:
    "_AVMediaTypeVideo", referenced from:
        _avf_read_header in libavdevice.a(avfoundation.o)
    "_AVMediaTypeMuxed", referenced from:
        _avf_read_header in libavdevice.a(avfoundation.o)
    "_OBJC_CLASS_$_AVCaptureDeviceInput", referenced from:
        objc-class-ref in libavdevice.a(avfoundation.o)
    "_CMSampleBufferGetImageBuffer", referenced from:
        _avf_read_header in libavdevice.a(avfoundation.o)
        _avf_read_packet in libavdevice.a(avfoundation.o)
    "_OBJC_CLASS_$_AVCaptureSession", referenced from:
        objc-class-ref in libavdevice.a(avfoundation.o)
  
  ...
  
    "_LoggerAudio", referenced from:
    -[KxMovieDecoder setSelectedAudioStream:] in KxMovieDecoder.o
    -[KxMovieDecoder openAudioStream:] in KxMovieDecoder.o
    -[KxMovieDecoder handleAudioFrame] in KxMovieDecoder.o
    -[KxMovieDecoder decodeFrames:] in KxMovieDecoder.o
  
  ld: symbol(s) not found for architecture armv7
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>In the project i use several other system dylibs and frameworks and other manually added static libraries with their relative headers.</p>
  
  <p>The project is for ios8 only, non-64. </p>
  
  <p>The libraries are all listed in Target > General >Linked Frameworks and Libraries.
  The headers are included correctly.</p>
  
  <p>The same files compiled and linked are executed correctly in another (normal application, non library) project</p>
  
  <p>I tried adding a pch also adding all the required libraries and nothing changed.</p>