ios - iOS 应用程序切片是否会删除通用静态库中不需要的部分?

标签 ios app-thinning

我有一个链接到通用静态库(.a 文件)的 iOS 项目,同时支持 armv7 和 arm64 架构。当应用程序二进制文件被切片为 App Thinning 的一部分时,该过程是否从 .a 文件中删除了不必要的架构?或者我是否需要以某种方式为每个体系结构提供单独的 .a 文件以在二进制大小方面获得这种好处(如果是这样,我该怎么做)?

最佳答案

细化应该只连接所需的拱门。

来自另一个静态库(包括指向 Apple 关于如何获取 App Thinning 报告的文档的链接):

The IndoorAtlas iOS SDK is a static library compiled for multiple architectures. Only required architectures are linked to the Thinned application. You may test the thinning results locally with these instruction: Testing Your iOS App - "The App Thinning Size Report file contains a summary of the sizes of all variants and the app-thinning.plist file contains more details."

取消链接库,获取基线应用程序瘦身报告。链接库,获取新报告并将它们进行比较。

关于ios - iOS 应用程序切片是否会删除通用静态库中不需要的部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45624011/

相关文章:

ios - 如何使用 unarchivedObjectOfClass :fromData:error:? 取消归档数据

ios - 当我 'po' lldb 中的核心数据对象时,x-coredata 路径是什么意思?

ios - 加载一个 View Controller ,然后从内存中删除前一个

ios - 位码iOS App, App Store上的Size

iOS App Thinning - 如何根据屏幕尺寸实现它?

ios - 如何在 xcode 7.1 中减小 ios APP 的大小

ios - 设置 contentInset 并且 tableViewHeader 中的 UITextField 变为事件状态时 UITableView 向下滚动

ios - Amazon Rekognition 从流视频中检测名人

ios - iOS 9 中的点播资源 - 如何找出下载资源的确切位置?

ios - 没有@3x 图像和某些图像为 JPG 时的应用程序细化