对于iOS应用的最大大小 [英] Maximum size for iOS app

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

问题描述

我在苹果的开发者指南读有用于iOS应用大小的限制,但我真的不明白。
它说的:

I've read in apple's dev guide there's a limit for iOS app size, but I don't really understand it. It says this:

iOS应用程序可以像2 GB的大,但是可执行文件不能超过60 MB。

iOS apps can be as large as 2 GB, but the executable file cannot exceed 60 MB.

是不是可执行文件的整个应用程序?我不明白,2 GB限制和60 MB的限制之间的区别。

Isn't the executable file the whole app? I don't understand the difference between the 2 GB limit and the 60 MB limit.

推荐答案

主要部分的应用程序是毫无疑问的可执行文件。可执行文件通常不是非常大,因为它是整机运行刚刚编译code。在小的,琐碎的,应用程序,这通常是只有几个千字节(KB)。在更复杂的应用程序就可以使之达到几兆字节(MB)。当编译为多种架构您的应用程序的规模将不可避免地增加(见我的问题编译64位的iOS设备)时,应用程序的大小。

The main part of the app is without a doubt the executable file. The executable is usually not very large, because it's just the compiled code that the machine runs. In small, trivial, apps, this is usually only a few kilobytes (KB). In more complex apps it can make it up to a few megabytes (MB). When compiling for multiple architectures the size of your app will inevitably increase (see my question on app size when compiling for 64-bit iOS devices).

一般的(不总是),你的应用程序的大小,大部分是由接口文件,图片,视频,声音,资源等。换句话说,否,该可执行文件而不是整个应用

Generally (not always), the bulk of your app's size is composed of interface files, images, videos, sounds, resources, etc. In other words, no, the executable is not the whole app.

打开任何应用程序(在某种文件查看器)和一起来看看它的内容,它有四个文件夹:

Open up any app (in some kind of file viewer) and take a look at it's contents, it has four folders:


  • 的包 - 与可执行文件和资源

  • 的文件夹 - 这也可以占用大量的空间

  • 缓存和临时目录

许多游戏都是面积很大,无尽之剑例如约1.2 GB的初始下载。但是无尽之剑的大小是因为图像/图形,而不是可执行文件的丰富金额。

Many games are very large in size, Infinity Blade for example is about 1.2 GB for the initial download. But Infinity Blade's size is because of the copious amount of images / graphics, not the executable.

我认为苹果正试图prevent恶意软件和iOS /设​​备内存限制。老实说,我觉得这是很难得到超过60 MB的可执行文件本身。就像我之前说的,应用规模的大部分是由资源。

I think that Apple is trying to prevent malicious software and iOS / Device memory limits. Honestly, I think it'd be very hard to get the executable itself above 60 MB. Like I said before, the bulk of app size is comprised of resources.

您可能还需要参考<一个href=\"https://developer.apple.com/library/mac/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/18_BestPractices/BestPractices.html\">iTunes连接指南这里。

该应用程序包文件的结构和沙盒系统的iOS 8(略)发生了变化。因此,一些关于应用程序包的结构的信息(上图)可能是不正确的的iOS 8.0或更高版本。但是,iOS版仍然会计算每一个这些项目的大小和数量它们作为你的应用程序的大小。

The app bundle file structure and sandboxing system has changed in iOS 8 (slightly). Therefore, some of the information about the structure of the app bundle (above) may be incorrect for iOS 8.0+. However, iOS will still calculate the size of each of these items and count them as your app's size.

例如,iOS中8,你的应用程序的文档将无法保存您的应用程序包内,但他们仍然对你的应用程序所使用的总存储空间计数。

For example, in iOS 8, your app's documents may not be stored within your app bundle, however they still count towards the total storage space used by your app.

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

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