xcode 应用程序大小限制和查找应用程序的大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11462687/
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
App Size Limit and Finding the size of your app
提问by Arian Faurtosh
Okay, so i've read countless places saying the app size limit is either 20 mb and some say it's 50mb... which is it?
好的,所以我读过无数地方说应用程序大小限制是 20 mb,有人说是 50 mb ......这是什么?
More importantly, my current app has an "estimate app store size" of 106.1mb in the Archive section of the Organizer. HOWEVER, when I distribute it to an ad-hoc file, it comes out as a .ipa which has the size of 48.3mb. Which one should I use, and I'm confused as to why they are so different.
更重要的是,我当前的应用程序在 Organizer 的“存档”部分中的“估计应用程序商店大小”为 106.1mb。但是,当我将其分发到临时文件时,它会以 .ipa 的形式出现,其大小为 48.3mb。我应该使用哪一个,我很困惑为什么它们如此不同。
回答by andycam
The official (and reliably up to date) resource for this is the Uploading Your Binarysection of the iTunes Connect Guide (expand the 'To begin the Ready to Upload Binary flow' section). At the time of this edit it states:
对此的官方(并且可靠地更新)资源是iTunes Connect 指南的上传您的二进制文件部分(展开“开始准备上传二进制文件流程”部分)。在进行此编辑时,它指出:
iOS App binary files can be as large as 2 GB, but the executable file (app_name.app/app_name) cannot exceed 60 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.
iOS App 二进制文件可以大到 2 GB,但可执行文件 (app_name.app/app_name) 不能超过 60 MB。但是,在确定应用程序的大小时,请考虑下载时间。尽可能减小文件大小,请记住,无线下载有 100 MB 的限制。
Over-the-air download limit means apps below this threshold can be downloaded with a mobile data connection (anything above the limit requires a WiFi connection, or to be downloaded through iTunes on the computer). This is important as many users may not have ready access to WiFi and you don't want to prevent them from being able to get your app!
无线下载限制意味着低于此阈值的应用程序可以通过移动数据连接下载(任何高于限制的应用程序都需要 WiFi 连接,或通过计算机上的 iTunes 下载)。这很重要,因为许多用户可能无法随时访问 WiFi,并且您不想阻止他们获取您的应用程序!
Also the .ipa is a compressed, encrypted zip file, whereas the archive is just a fully inflated package of the app, which is why the file sizes are different. The .ipa file size is the one that will be used in the App Store, so use that as your reference for total size. That said, the smaller you can make your app, obviously the happier the user will be!
此外,.ipa 是一个压缩、加密的 zip 文件,而存档只是一个完全膨胀的应用程序包,这就是文件大小不同的原因。.ipa 文件大小是将在 App Store 中使用的文件大小,因此请将其用作总大小的参考。也就是说,您的应用程序越小,显然用户就会越开心!
回答by coneybeare
Apple recently bumped up the size from 20 to 50 shortly after WWDC '12. I am not sure if it was officially announced, but was observed in the error message of larger apps.
Apple 最近在 WWDC '12 之后不久将尺寸从 20 增加到 50。我不确定它是否正式宣布,但在较大应用程序的错误消息中观察到。
Use the IPA size. The files sent from the app store are compressed. Perhaps the 106.1 is the uncompressed size, or it is a bug.
使用 IPA 大小。从应用商店发送的文件被压缩。也许 106.1 是未压缩的大小,或者它是一个错误。