带有x86 Slice的iOS框架,用于模拟器+ Appstore批准 [英] iOS Frameworks with x86 Slice for Simulator + Appstore Approval

查看:254
本文介绍了带有x86 Slice的iOS框架,用于模拟器+ Appstore批准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建和分发iOS Framework库供其他开发人员使用。

I am building and distributing an iOS Framework library for consumption by other developers.

最近我遇到了一个错误(功能) ?)Apple Store ,如果iOS框架是使用x86架构构建的(对于模拟器),那么整个应用程序将无法通过App Store批准并出现错误:

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. 包括调试(使用模拟器)和发布(没有模拟器)构建的框架?

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

提供一个脚本从框架中剥离x86

动态框架?还是其他什么?

Dynamic frameworks? Or anything else?

我的偏好是尽可能少的步骤给最终用户带来负担,所以我正在构建的iOS框架应该'只是工作'。但是,iOS App Store认证相当新,所以无论如何都会感激不尽!

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. 您需要为设备和模拟器单独构建。这是调试和发布的基本方法。

  1. 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.

这篇关于带有x86 Slice的iOS框架,用于模拟器+ Appstore批准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆