Apple 是否更改了他们的应用程序归档方法? [英] Did Apple change their app archiving method?
问题描述
我们一直在努力将我们的应用程序控制在 20 MB 以下,以便无线下载能够正常工作,并且在 2 周前发布的最后一个版本中,我们取得了成功.
We've been fighting to get our app under 20 MB so that over-the-air downloading would work, and with our last release 2 weeks ago we succeeded.
经过大量的反复试验才得到正确的结果,但最终我们将应用程序缩减到 27MB(未压缩),在商店中显示为 19.5MB.
It took a bunch of trial-and-error to get right, but eventually we cut our app down to 27MB (uncompressed), which showed up in the store as 19.5MB.
一切看起来都很好,直到我们对代码进行了小幅更新以修复一些错误,突然应用商店版本的应用程序膨胀到未压缩的 27MB 大小!我刚刚检查了分发档案,新的二进制文件实际上比旧的小 2k.
All seemed well, until we did a minor code update to fix some bugs, when suddenly the app store version of the app ballooned to the full uncompressed 27MB size! I just checked the distribution archives, and the newer binary is actually 2k smaller than the older one.
有没有人知道是什么导致了这种情况?
Does anyone have any idea what would cause this?
推荐答案
在 http://www.alexcurylo.com/blog/2010/05/22/tip-shipping-app-size/ 有一种计算最终尺寸的方法.简而言之:
In http://www.alexcurylo.com/blog/2010/05/22/tip-shipping-app-size/ there is a way to calculate the final size. In short:
- 通过右键单击打开 .app 包 -> 显示包内容(在 Mac 上)
- 找到可执行文件并记住其(未压缩)大小(大小A")
- 从包中删除可执行文件
- 压缩包并记住包的压缩大小(大小B")
- 大小C"是 Apple 添加到捆绑包中的其他文件中的 100 KB.
App 最大尺寸的最终计算如下:
The final calculation for the maximum size of your App is as follows:
A + B + C = 批准后应用的最大尺寸
A + B + C = maximum size of your App after approval
一句话:
(未压缩的可执行文件大小)+(压缩的应用程序包但没有可执行文件)+ 0,1 MB = 批准后应用程序的最大大小
(uncompressed executable size) + (app bundle compressed but without executable) + 0,1 MB = maximum size of your App after approval
这篇关于Apple 是否更改了他们的应用程序归档方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!