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

查看:91
本文介绍了归档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 App Store服务器将加密应用程序包中的可执行二进制文件对于客户下载,从而使应用程序比当前存档更不易压缩。这是因为加密产生的随机查找位并不像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代码,然后将该静态数据移动到捆绑包中的数据文件中可能有助于减少App Store的大小。

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天全站免登陆