iOS Frameworks with x86 Slice for Simulator + Appstore Approval

走远了吗. 提交于 2019-11-29 10:40:19

问题


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:

  1. Include debug (with simulator) and release (without simulator) builds of the framework?

  2. Provide a script to strip x86 from the Framework before end-users deploy their apps?

  3. 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!


回答1:


Best practice way for

  1. You need to build separately for device and simulator. It's very basic way to debug and release.

  2. Yes . This is easy and best way. Release without simulator is basic way for sell and cannot debug it while develop.

  3. Professional level can extract merged simulator build / architecture from the framework using script. But it could be additional task.



来源:https://stackoverflow.com/questions/38526399/ios-frameworks-with-x86-slice-for-simulator-appstore-approval

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!