title: Xcode 9 - "file was built for x86_64 which is not the architecture being linked (armv7)"
body: <p>I'm making an app for hobby purposes that uses the OpenCV library. I made a separate Xcode project in C++ that works successfully on its own, but when I tried adding the same OpenCV files from that project to my Swift project, on build it gave me this warning:</p>
  
  <p>ignoring file /usr/local/Cellar/whateverfilename.dylib,  file was built for x86_64 which is not the architecture being linked (armv7): /usr/local/Cellar/whateverfilename.dylib</p>
  
  <p>repeated a whole bunch of times for all the files I had linked to.</p>
  
  <p>I looked at other stack overflow questions and followed all the advice they gave, including adding i386 and x86_64 to my Valid Architectures, changing Build Active Architecture Only to No, and deleting my derived data, but nothing seems to work.</p>
  
  <p>I'm sort of new to Xcode, is there anything terribly wrong with what I'm doing?</p>
  
  <p>Additional semi-relevant info:</p>
  
  <ul>
  <li><p>My plan was to write all the OpenCV stuff in C++ and wrap it in obj-C so that Swift could use it.</p></li>
  <li><p>The iOS target is set to 10.3 because I'm testing the app on an old Ipad.</p></li>
  <li><p>I'm using Tesseract along with OpenCV</p></li>
  <li><p>I installed OpenCV using cmake</p></li>
  </ul>