title: IOS linking with missing architecture i386 (AdSupport.framework)
body: <p>I had this <a href="https://stackoverflow.com/questions/26701403/ios-simulator-linker-command-failed">question</a> going on, but now I am a little further:</p>
  
  <p>I added this framework to my project:</p>
  
  <pre><code>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/AdSupport.framework
  </code></pre>
  
  <p>Now this works fine if I run the app on any device, however this framework is just for the architectures armv7, armv7s and arm64</p>
  
  <p>When running the app on the simulator, the build fails because the architecture i386 is missing. This is included in:</p>
  
  <pre><code>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AdSupport.framework
  </code></pre>
  
  <p>How can I achieve that all architectures can be used?  I played a lot with the build-settings but nothing worked so far!</p>
  
  <p>error report:</p>
  
  <pre><code>ld: warning: ignoring file /Users/XXXXXXX/Documents/app1/app1/AdSupport.framework/AdSupport, missing required architecture i386 in file /Users/XXXXXXX/Documents/app1/app1/AdSupport.framework/AdSupport (3 slices)
  Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_ASIdentifierManager", referenced from:
    objc-class-ref in libGoogleAdMobAds.a(GADDevice.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>
  
  <p>Thanks a lot!</p>