title: opencv2.framework not compile with linker flag -ObjC
body: <p>I'm using the latest version of <em>opencv</em> (<a href="http://opencv.org/downloads.html" rel="nofollow noreferrer">opencv 2.4.9</a>) and I have to have the <strong>-ObjC flag</strong>, required by <em>Core Plot</em> (a plotting framework).</p>
  
  <p>When I set <strong>-ObjC</strong> in the other flags, I get a lot of errors (28 actually) of type : <code>Undefined symbols for architecture i386</code> as follow :</p>
  
  <pre><code>Undefined symbols for architecture i386:
  "_CMSampleBufferGetImageBuffer", referenced from:
  -[CaptureDelegate captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_avfoundation.o)
  CvCaptureFile::retrieveFramePixelBuffer() in opencv2(cap_avfoundation.o)
  -[CvVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_ios_video_camera.o)
  "_CMSampleBufferGetPresentationTimeStamp", referenced from:
  -[CvVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_ios_video_camera.o)
  "_CMSampleBufferInvalidate", referenced from:
  CvCaptureFile::retrieveFramePixelBuffer() in opencv2(cap_avfoundation.o)
  "_CMTimeMake", referenced from:
  CvCaptureCAM::startCaptureDevice(int) in opencv2(cap_avfoundation.o)
  CvVideoWriter_AVFoundation::writeFrame(_IplImage const*) in opencv2(cap_avfoundation.o)
  -[CvVideoCamera createVideoDataOutput] in opencv2(cap_ios_video_camera.o)
  "_CMVideoFormatDescriptionGetPresentationDimensions", referenced from:
  CvCaptureCAM::getProperty(int) in opencv2(cap_avfoundation.o)
  "_CVBufferRelease", referenced from:
  -[CaptureDelegate captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_avfoundation.o)
  -[CaptureDelegate updateImage] in opencv2(cap_avfoundation.o)
  CvCaptureFile::retrieveFramePixelBuffer() in opencv2(cap_avfoundation.o)
  ... etc
  </code></pre>
  
  <p>It is the same problem as <a href="http://answers.opencv.org/question/20152/ios-opencv2framework-not-compile-with-linker-flag/" rel="nofollow noreferrer">Bartosz Bialecki</a>, I tried the proposed solution but problem's still here.</p>
  
  <p>Does anyone have an idea ?</p>
  
  <h2>EDIT :</h2>
  
  <p><strong>Here are all the framework I included :</strong></p>
  
  <p><img src="https://i.stack.imgur.com/noFhW.png" alt="enter image description here"></p>