在Android和iOS的应用程序文件的大小差异 [英] App file size differences in Android and iOS

查看:216
本文介绍了在Android和iOS的应用程序文件的大小差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与两个应用程序分发服务(安卓市场和苹果App Store),我发现了一种神秘感。工作

Working with both app distributions services (android market and Apple App store) I have discovered a mystery.

一个应用程序的文件大小一般为较大的苹果应用程序比一个Android应用程序。 我似乎无法找到分歧任何解释,这似乎是一个不变的主题。

The file size of an app is in general larger for an Apple app than for a Android app. I can't seem to find any explanation for the differences, and it seems to be an untouched subject.

我已经尝试了不同的应用程序,并配发了不同似乎几MB的有所不同,以6-8 MB。所以现在的问题是,怎么来的文件大小是苹果的应用程序大?什么是用于额外的MB?

I have tried allot of different apps and the difference seems to vary between a couple of MB to 6-8 MB. So the question is, how come the file size is larger for Apple apps? What is the extra MB used for?

例如:

Android版本:918K - <一个href="https://market.android.com/details?id=bbc.mobile.news.ww">https://market.android.com/details?id=bbc.mobile.news.ww

Android: 918K - https://market.android.com/details?id=bbc.mobile.news.ww

苹果:6.7 MB - <一个href="http://itunes.apple.com/dk/app/bbc-news/id364147881?mt=8">http://itunes.apple.com/dk/app/bbc-news/id364147881?mt=8

Apple: 6.7 MB - http://itunes.apple.com/dk/app/bbc-news/id364147881?mt=8

由于一些垃圾邮件prevention,我无法直接链接到其他地区。

Due to some spam prevention, I'm unable to link directly to the rest.

安卓1.2 MB

苹果:7.9 MB

安卓2.1 MB

苹果:6.4 MB

Android版本:727K

Android: 727K

苹果:2.1 MB

我可以继续下去......如果任何人都可以提供文件大小的统计两个应用程序分布,确认或反驳我的理论。 - 我想AP preciate它配发

I could go on... If anyone can provide a statistics of file size for the two app distributions, confirming or disproving my theory. - I would appreciate it allot.

推荐答案

我刚刚花了一天左右试图跟踪这个确切的问题了。我建立了一个小游戏叫BlockIT为Android,现在我有一个运行版本的IOS。极其奇怪的是,Android的版本是8.2 MB和IOS版本是14.1 MB。

I have just spent the last day or so trying to track this exact problem down. I have built a little game called BlockIT for Android, and now I have a running version for IOS. The extremely odd thing is that the Android version is 8.2 MB and the IOS version is 14.1 MB.

现在,因为我源的老板,我想跟踪下来,并找出原因。作为这里的许多建议,它是图形元素 - 这不是这种情况。整个数据集(非code)项每个包中几乎相同。这是有道理的,因为我使用的是相同的图形中的每个应用程序。

Now, since I am the owner of the source, I wanted to track this down and find out why. As many suggest here that it is the graphical elements - this is not the case. The entire data set (non code) was almost identical in each package. Which makes sense since I am using the same graphics in each application.

那么,为什么是code编译这么多不同的!我的IOS code版本是近7 MB和Android之一是少于3 MB。 C本身的$ C $被写入相同的工作,所有的但code小部分是完全在每个平台上都相同。我发现,该版本(IOS GCC)的设置有什么尺寸的输出,你得到巨大的影响。如果只设置目标ARM6或ARM7然后我code二进制文件的大小为7 MB降到5 MB。这表明有功能和库为每个目标中的一个二进制几乎完全重复!此外,内置的调试符号不似乎得到完全剥离。最后,在code中的加密也花费了大量。这可能是最令人费解,因为Android的标志他们的apk以类似的方式。看来,内部监督办公室签署做得非常奇怪的。

So, why is the code build so much different! My IOS code build was nearly 7 MB and the Android one was less than 3 MB. The code itself was written to run identically and all but small portions of code are exactly the same on each platform. What I found was that the build (IOS gcc) settings had massive effects on what size of output you get. If you set only to target ARM6 or ARM7 then the size of my code binary dropped from 7 MB to 5 MB. This indicates there are almost complete duplicates of functions and libraries for each target in the one binary! Additionally, the built-in debugging symbols dont seem to get entirely stripped. Finally, the encryption of the code also costs large amounts. This is probably the most puzzling, since Android signs their apk's in a similar fashion. It seems that the IOS signing is done very oddly.

所以,我希望帮助。要重申:
- 图像/数据似乎并不成为问题
- 对IOS code栋产生了一个二进制多平台输出==许多额外的code(顺便说一句我不凌晨为什么苹果做到这一点 - 似乎很奇怪)
。 - code加密不是非常大小IOS友好。
有解决实际问题(同样,奇数和令人失望的)没有真正的方法。
干杯, 戴夫

So, I hope that helps. To reiterate:
- Images / Data don't seem to be the problem
- Code building on IOS generates multiple platform output in the one binary == lots of extra code (btw I dont wee why Apple does this - seems odd).
- Code encryption is not very size friendly on IOS.
There's no real way to fix the actual problem (again, odd and disappointing).
Cheers, Dave

这篇关于在Android和iOS的应用程序文件的大小差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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