title: Error Importing OpenCV Framework to Unity Project iOS
body: <p>I built OpenCV using the script available here:
  <a href="http://aptogo.co.uk/2011/09/opencv-framework-for-ios/" rel="nofollow">http://aptogo.co.uk/2011/09/opencv-framework-for-ios/</a></p>
  
  <p>Then created a Unity3d iOS project, generated the xcode project from Unity3d, added the OpenCV framework to the project and tried to compile.</p>
  
  <p>I get the following error: </p>
  
  <pre><code>duplicate symbol _adler32 in /my-path/Libraries/libiPhone-lib.a(adler32.o) and /my-path/OpenCV.framework/OpenCV(adler32.o) for architecture armv7
  </code></pre>
  
  <p>I tried to remove adler32.so from the OpenCV lib, using "lipo" and "ar" then repackaged the lib, and I got another duplicated symbol. Eventually I removed a lot of objects from the OpenCV lib and it started complaining about missing symbols.</p>
  
  <p>It was a fun experiment but didn't work.</p>
  
  <p>If I create a project on xcode with OpenCV it compiles without errors.
  Unity3d project without OpenCV also works.</p>
  
  <ul>
  <li>xcode version: 4.3.3 </li>
  <li>unity3d version: 3.5.2 (latest) </li>
  <li>OpenCV: 2.4.1 - Adding OpenCV as a framework.</li>
  </ul>
  
  <p>I searched for a linker option under xcode to see if I could make it more permissive but didn't found anything.</p>
  
  <p>Any idea how to solve the error?</p>