title: iphone missing required architecture i386
body: <p>I am getting this error for one of my project to use a static library. The project runs well in iOS device. But not in simulator. The static library is not mine, so I cannot recompile it for i386. 
  But this is a hardware driver, for iPhone. So when running in Simulator I really do not need this library. Its like if the Accessory is present with the device then the app will have a different flow. </p>
  
  <p>So I have to keep the reference to this file. But will only need in iOS device. Not needed when running in the simulator to run the app for UI and other testing purpose. </p>
  
  <p>How can I avoid this error? Is there anyway to configure the target or scheme to avoid the object file/lib when running in simulator?</p>
  
  <pre><code>ld: warning: ignoring file 
  /Framework/iSmartSDK/libiSmartSDK_Lib.a, missing required architecture i386 in file  
  /Framework/iSmartSDK/libiSmartSDK_Lib.a (2 slices)
  Undefined symbols for architecture i386:
    "_OBJC_CLASS_$_iSmart", referenced from:
        objc-class-ref in SmartCardReaderVC.o
  ld: symbol(s) not found for architecture i386
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>