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!
Best practice way for
You need to build separately for device and simulator. It's very basic way to debug and release.
Yes . This is easy and best way. Release without simulator is basic way for sell and cannot debug it while develop.
Professional level can extract merged simulator build / architecture from the framework using script. But it could be additional task.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With