I am building and distributing an iOS Framework library for consumption by other developers.
Recently I ran into a bug (feature?) of the Apple Store 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:
[Transporter Error Output]: ERROR ITMS-90087: "Unsupported Architectures. The
executable for blah.app/Frameworks/MyLib.framework contains
unsupported architectures '[x86_64, i386]'."
What is the best practice here? Should I:
Include debug (with simulator) and release (without simulator) builds of the framework?
Provide a script to strip x86 from the Framework before end-users deploy their apps?
Dynamic frameworks? Or anything else?
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!