iPhone应用程序的大小有什么限制? [英] What's the limit for the size of iPhone apps?

查看:124
本文介绍了iPhone应用程序的大小有什么限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常巨大的应用程序。它有大量的图像和声音。共有30 MB的大小。

I have an app which is quite huge. It has tons of images and sounds. In total it's 30 MB in size.

1)应用程式大小有正式上限吗?

1) Is there an official limit for the app size?

推荐答案

这可能听起来很明显,但是有两个大小限制请记住这里 - 两者都不是绝对定义的。

This might sound obvious, but there are two size limits to keep in mind here - neither are absolutely defined.

一个是应用程序包的限制。我不知道是否有一个真正的限制(除了设备的闪存存储限制),但这应该很少是一个问题。记住其他菲尔提到的10Mb阈值。也许有一些在2GB的限制,我不知道。

One is the limit for the application bundle. I don't know if there is a real limit (other than the device's flash storage limit), but this should rarely be an issue. Keep in mind the 10Mb threshold that the other Phil mentions though. There may be something in the 2GB limit too, I don't know.

更重要的限制是加载的二进制映像的大小和它的运行时内存使用。 iPhone在这方面显然是一个受限设备。原来的iPhone和iPod touch总共有128Mb RAM,没有分页。目前的模型有256Mb,但是有点早期限制自己的安装基础的子集,如果你可以帮助它。
假设128Mb,一个公平的块被系统本身和它的后台任务使用(和人们也想要用户后台任务!!)。

The more important limit is on the size of the loaded binary image and it's runtime memory usage. The iPhone is obviously a constrained device in this area. The original iPhones and iPod touches had 128Mb of total RAM, with no paging. Current models have 256Mb, but it's a bit early to limit yourself to that subset of the installed base if you can help it. Assuming 128Mb, of that a fair chunk is used by the system itself and its background tasks (and people want user background tasks too!?!).

在与苹果工程师的谈话中,他说应用程序应该使用不超过约25-30Mb!高达60Mb可能可用,但不能计数(但你可以使用这额外的缓存的东西,你可以清除,如有必要)。

In a conversation with an Apple Engineer he said that apps should be written to use no more than about 25-30Mb! Up to 60Mb may be available but cannot be counted on (but you could use this extra for caching stuff that you can purge as necessary).

这篇关于iPhone应用程序的大小有什么限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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