title: iOS Frameworks with x86 Slice for Simulator + Appstore Approval
body: <p>I am building and distributing an iOS Framework library for consumption by other developers. </p>
  
  <p>Recently I ran into a <a href="https://forums.developer.apple.com/thread/21496" rel="noreferrer">bug (feature?) of the Apple Store</a> whereby if an iOS Framework is built with the x86 Architecture (for the simulator) then the entire app fails App Store approval with the error:</p>
  
  <pre><code>[Transporter Error Output]: ERROR ITMS-90087: "Unsupported Architectures. The  
  executable for blah.app/Frameworks/MyLib.framework contains 
  unsupported architectures '[x86_64, i386]'."
  </code></pre>
  
  <p>What is the best practice here? Should I:</p>
  
  <ol>
  <li><p>Include debug (with simulator) and release (without simulator) builds of the framework? </p></li>
  <li><p>Provide a <a href="https://github.com/realm/realm-cocoa/blob/d59c86f11525f346c8e8db277fdbf2d9ff990d98/scripts/strip-frameworks.sh" rel="noreferrer">script to strip x86</a> from the Framework before end-users deploy their apps? </p></li>
  <li><p>Dynamic frameworks? Or anything else? </p></li>
  </ol>
  
  <p>My preference is to burden end-users with as few steps as possible so the iOS Framework I'm building should 'just work'. However, fairly new to iOS App Store certification so would appreciate any pointers whatsoever!</p>