归档 iphone 上的应用程序大小加倍 [英] App size double on archiving iphone

查看:26
本文介绍了归档 iphone 上的应用程序大小加倍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经检查过我的应用程序产品大小约为 10MB,但是当我构建它以进行存档时,它显示我的 Appstore 大小为 20MB,即它几乎翻了一番.但是当我看到文件夹中的存档大小仍然是 10MB 时,我不知道为什么会发生这种情况可能是由于支持两种架构,即 armv6 和 armv7.如果我提交的应用程序大小为 20MB,那么我在 Appstore 上的最终大小会是多少.如果有人有任何想法,请告诉我.

I have checked that my app product size is around 10MB but when I build it for archiving it shows me the Appstore size as 20MB i.e. it almost got doubled. But when I see archive in folder its size is still 10MB, I dont know why this happening may be its due to support of both architectures i.e. armv6 and armv7. If I submit the app with 20MB what my final size on the Appstore would come. If anyone have any idea then please let me know.

推荐答案

iOS 应用商店服务器将对您的应用程序包中的可执行二进制文件进行加密以供客户下载,从而使应用程序的可压缩性远低于您当前的存档.这是因为加密产生的随机外观位不像 armv6 或 armv7 机器代码那样可压缩.

The iOS App store servers will encrypt the executable binary inside your app bundle for customer downloads, thus making the app much less compressible than your current archive. This is because the random looking bits that result from encryption are not anywhere near as compressible as armv6 or armv7 machine code.

因此,获得更现实的 App Store 下载大小的方法是从您的应用程序包中删除可执行文件,压缩包,记下 zip 大小,然后添加未压缩的可执行文件大小.

So the way to get a more realistic App store download size is to remove the executable from your app bundle, zip the bundle, note the zip size, then add the uncompressed executable size.

如果您不想混淆 C 代码中的大量静态数据,那么将这些静态数据移动到捆绑包中的数据文件中可能有助于减少应用商店的大小.

If you have large static data inside your C code that you don't want to obfuscate, then moving that static data into a data file in the bundle might help reduce App store size.

这篇关于归档 iphone 上的应用程序大小加倍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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