iOS 应用程序的最大大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4753100/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Max size of an iOS application
提问by Chiron
What is the maximum size of an iOS application? any constraints?
iOS 应用程序的最大大小是多少?有什么限制吗?
回答by WrightsCS
4GB's is the maximum size your iOS app can be.
4GB 是您的 iOS 应用程序可以达到的最大大小。
As of January 26, 2017
截至 2017 年 1 月 26 日
App Size for iOS (& tvOS) only
Your app's total uncompressed size must be less than 4GB. Each Mach-O executable file (for example,
app_name.app/app_name
) must not exceed these limits:
- For apps whose
MinimumOSVersion
is less than 7.0: maximum of 80 MB for the total of all__TEXT
sections in the binary.- For apps whose
MinimumOSVersion
is 7.x through 8.x: maximum of 60 MB per slice for the__TEXT
section of each architecture slice in the binary.- For apps whose
MinimumOSVersion
is 9.0 or greater: maximum of 500 MB for the total of all__TEXT
sections in the binary.However, consider download times when determining your app's size. Minimize the file's size as much as possible, keeping in mind that there is a 100 MB limit for over-the-air downloads.
仅适用于 iOS(和 tvOS)的应用程序大小
您的应用的总未压缩大小必须小于 4GB。每个 Mach-O 可执行文件(例如,
app_name.app/app_name
)不得超过以下限制:
- 对于
MinimumOSVersion
小于 7.0 的应用程序:__TEXT
二进制文件中所有部分的总和最大为 80 MB 。- 对于
MinimumOSVersion
7.x 到 8.x 的应用程序:__TEXT
对于二进制文件中每个架构切片的部分,每个切片最多 60 MB 。- 对于
MinimumOSVersion
9.0 或更高版本的应用程序:__TEXT
二进制文件中所有部分的总和最大为 500 MB 。但是,在确定应用程序的大小时,请考虑下载时间。尽可能减小文件大小,请记住,无线下载有 100 MB 的限制。
This information can be found at iTunes Connect Developer Guide: Submitting the App to App Review.
此信息可在iTunes Connect 开发人员指南:将应用程序提交给应用程序审核 中找到。
As of February 12, 2015
截至 2015 年 2 月 12 日
(iOS only) App Size
iOS App binary files can be as large as 4 GB, but each executable file (app_name.app/app_name) must not exceed 60 MB. Additionally, the total uncompressed size of the app must be less than 4 billion bytes. However, consider download times when determining your app's size. Minimize the file's size as much as possible, keeping in mind that there is a 100 MB limit for over-the-air downloads.
(仅限 iOS)应用程序大小
iOS App 二进制文件可大至 4 GB,但每个可执行文件 (app_name.app/app_name) 不得超过 60 MB。此外,应用程序的总未压缩大小必须小于 40 亿字节。但是,在确定应用程序的大小时,请考虑下载时间。尽可能减小文件大小,请记住,无线下载有 100 MB 的限制。
This information can be found on page 77of the iTunes Connect Developer Guide.
此信息可在iTunes Connect 开发人员指南的第 77 页上找到。
As of December 12, 2013
截至 2013 年 12 月 12 日
(iOS only) App Size
iOS App binary files can be as large as 2 GB, but the executable file (app_name.app/app_name) cannot exceed 60MB. However, consider download times when determining your app's size. Minimize the file's size as much as possible, keeping in mind that there is a 100 MB limit for over-the-air downloads.
(仅限 iOS)应用程序大小
iOS App 二进制文件可以大到 2 GB,但可执行文件(app_name.app/app_name)不能超过 60MB。但是,在确定应用程序的大小时,请考虑下载时间。尽可能减小文件大小,请记住,无线下载有 100 MB 的限制。
This information can be found on page 58of the iTunes Connect Developer Guide.
此信息可在iTunes Connect 开发人员指南的第 58 页上找到。
As of June 6, 2013
截至 2013 年 6 月 6 日
The above information is still the same with the exception of the Executable Filesize which is now limited to 60MB's. These changes can be found on page 237of the guide.
除了现在限制为60MB的Executable File大小之外,上述信息仍然相同。这些更改可以在指南的第 237 页上找到。
As of January 10, 2013
截至 2013 年 1 月 10 日
The above information is still the same with the exception of the Executable Filesize which is now limited to 60MB's. These changes can be found on page 208of the guide.
除了现在限制为60MB的Executable File大小之外,上述信息仍然相同。这些更改可以在指南的第 208 页上找到。
As of October 31, 2012
截至 2012 年 10 月 31 日
The above information is still the same with the exception of Over The Air downloadswhich is now 50MB's. These changes can be found on page 206of the guide. Thanks to comment from Ozair Kafray.
除了现在为50MB的无线下载之外,上述信息仍然相同。这些更改可以在指南的第 206 页上找到。感谢Ozair Kafray 的评论。
As of July 19, 2012
截至 2012 年 7 月 19 日
The above information is still the same with the exception of Over The Air downloadswhich is now 50MB's. These changes can be found on page 214of the guide. Thanks to comment from marsbear. In addition, the document has moved here:
除了现在为50MB的无线下载之外,上述信息仍然相同。这些更改可以在指南的第 214 页上找到。感谢来自marsbear 的评论。此外,该文件已移至此处:
As of July 13, 2012
截至 2012 年 7 月 13 日
The above information is still the same with the exception of Over The Air downloadswhich is now 50MB's. These changes can be found on page 209of the guide.
除了现在为50MB的无线下载之外,上述信息仍然相同。这些更改可以在指南的第 209 页上找到。
As of March 29, 2012 (version 7.4)
截至 2012 年 3 月 29 日(版本 7.4)
The above information is still the same with the exception of Over The Air downloadswhich is now 50MB's. These changes can be found on page 209of the guide.
除了现在为50MB的无线下载之外,上述信息仍然相同。这些更改可以在指南的第 209 页上找到。
As of January 23, 2012 (version 7.3)
截至 2012 年 1 月 23 日(版本 7.3)
The above information is still the same, however, it can be found on page 172of the guide.
上述信息仍然相同,但可以在指南的第 172 页上找到。
As of October 17, 2011 (version 7.2)
截至 2011 年 10 月 17 日(版本 7.2)
The above information is still the same, however, it can be found on page 180of the guide. Thanks to comment from Lukefor the update.
上述信息仍然相同,但是可以在指南的第 180 页上找到。感谢卢克对更新的评论。
As of September 22, 2011 (version 7.1)
截至 2011 年 9 月 22 日(版本 7.1)
The above information is still the same, however, it can be found on page 179of the guide. Thanks to comment from Saxon Drucefor the update.
上述信息仍然相同,但可以在指南的第 179 页上找到。感谢Saxon Druce对更新的评论。
回答by Ben Zotto
150MBis the constraint for over-the-air downloads via the cellular network. Anything above that and users will be suggested Wi-Fi or iTunes sync to actually get your app.
150MB是通过蜂窝网络进行无线下载的限制。高于此范围的任何内容都会建议用户使用 Wi-Fi 或 iTunes 同步来实际获取您的应用程序。
This will not prevent a purchase though, at point of sale.
但是,这不会阻止在销售点购买。
回答by Tasik
回答by Lance Samaria
回答by Matt
回答by Thanh
As of July 2016:
截至 2016 年 7 月:
Short Answer:
简答:
If your game is released for iOS 9.0 or newer, you can have maximum app size of 400 MBfor the size of the Mach-O binary file (for example, app_name.app/app_name).
Your app's total uncompressed size must be less than 4 Gb.
如果您的游戏是针对 iOS 9.0 或更新版本发布的,则 Mach-O 二进制文件(例如 app_name.app/app_name)的大小可以设置为400 MB 的最大应用程序大小。
您的应用的总未压缩大小必须小于 4 Gb。
Long Answer:
长答案:
Your app's total uncompressed size must be less than 4 billion bytes. Each Mach-O executable file (for example, app_name.app/app_name) must not exceed these limits:
您的应用的总未压缩大小必须小于 40 亿字节。每个 Mach-O 可执行文件(例如 app_name.app/app_name)不得超过以下限制:
For apps whose MinimumOSVersion is less than 7.0: maximum of 80 MBfor the total of all __TEXT sections in the binary.
对于 MinimumOSVersion 小于 7.0 的应用程序: 二进制文件中所有 __TEXT 部分的总和最大为 80 MB。
For apps whose MinimumOSVersion is 7.x through 8.x: maximum of 60 MBper slice for the __TEXT section of each architecture slice in the binary.
对于 MinimumOSVersion 为 7.x 到 8.x 的应用程序: 对于二进制文件中每个架构切片的 __TEXT 部分,每个切片最多 60 MB。
For apps whose MinimumOSVersion is 9.0 or greater: maximum of 400 MBfor the size of the Mach-O binary file.
对于 MinimumOSVersion 为 9.0 或更高版本的应用程序: Mach-O 二进制文件的大小最大为 400 MB。
However, consider download times when determining your app's size. Minimize the file's size as much as possible, keeping in mind that there is a 100 MB limit for over-the-air downloads. Abnormally large build files are usually the result of storing data, such as images, inside the compiled binary itself instead of as a resource inside your app bundle. If you are compiling an image or large dataset into your binary, it would be best to split this data out into a resource that is loaded dynamically by your app.
但是,在确定应用程序的大小时,请考虑下载时间。尽可能减小文件大小,请记住,无线下载有 100 MB 的限制。异常大的构建文件通常是将数据(例如图像)存储在编译后的二进制文件本身中而不是作为应用程序包中的资源的结果。如果您要将图像或大型数据集编译为二进制文件,最好将此数据拆分为应用程序动态加载的资源。
Here is the link to Apple Developer Guide that contains the info I posted above:
这是 Apple Developer Guide 的链接,其中包含我在上面发布的信息:
You can go to the section "Submitting the App for App Review" on the link above to read more on the info I posted above.
您可以转到上面链接中的“提交应用程序进行应用程序审核”部分,以阅读有关我在上面发布的信息的更多信息。
回答by Patrick
50 Meg is the max for Cell data download.
50 Meg 是 Cell 数据下载的最大值。
But you might be able to keep it under that in the app store and then have the app download other content after the user install and runs the app, so the app can be bigger. But not sure what the apple rules are for this.
但是您可以将其保留在应用商店中,然后在用户安装并运行该应用后让该应用下载其他内容,因此该应用可以更大。但不确定苹果的规则是什么。
I know that all in-app purchases need to be approved, but not sure if this kind of content needs to be approved.
我知道所有应用内购买都需要批准,但不确定此类内容是否需要批准。
回答by Mohamed DiaaEldin
Now Accepting Larger Binaries February 12, 2015
现在接受更大的二进制文件 2015 年 2 月 12 日
The size limit of an app package submitted through iTunes Connect has increased from 2 GB to 4 GB, so you can include more media in your submission and provide a more complete, rich user experience upon installation. Please keep in mind that this change does not affect the cellular network delivery size limit of 100 MB.
通过 iTunes Connect 提交的应用程序包的大小限制已从 2 GB 增加到 4 GB,因此您可以在提交中包含更多媒体,并在安装时提供更完整、更丰富的用户体验。请记住,此更改不会影响 100 MB 的蜂窝网络传输大小限制。