Xcode 4.3 的“估计应用商店大小”与 .ipa 文件有很大不同,为什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9353859/
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
Xcode 4.3's 'estimated app store size' is considerably different than .ipa file, why?
提问by Shizam
I had been using Xcode 4.2 up till last week and I was using the size of my .ipa file to estimate the size of my app in the app store (I've kept it just under 20MB) and its been pretty consistent. I upgraded to Xcode 4.3 2 days ago and it has a new feature to indicate to you the 'Estimated App Store Size' after you 'Archive' your app, the estimated size its giving me is fully 2x the size of my .ipa file I've been using to guess my app store size and its WAY over 20MB according to Xcode 4.3!
直到上周我一直在使用 Xcode 4.2,我使用 .ipa 文件的大小来估计应用程序商店中我的应用程序的大小(我将其保持在 20MB 以下)并且它非常一致。我 2 天前升级到 Xcode 4.3,它有一个新功能,可以在您“归档”您的应用程序后向您指示“估计的 App Store 大小”,它给我的估计大小完全是我的 .ipa 文件大小的 2 倍我根据 Xcode 4.3,我一直在用来猜测我的应用程序商店的大小和超过 20MB 的大小!
So, which one is right? :O
那么,哪一个是对的?:O
EDIT: Just released the app today and it looks like the ipa was the closest guess in my case the app shows in the store as 17.6MB and the .ipa is (now) 16.7MB, 3.3MB binary.
编辑:今天刚刚发布了应用程序,看起来 ipa 是我最接近的猜测,应用程序在商店中显示为 17.6MB,而 .ipa 是(现在)16.7MB,3.3MB 二进制文件。
采纳答案by iisystems
You can more or less ignore XCode's "estimate" (or roughly cut it in half) for most iOS apps. The IPA is the size of the app. This doubling in estimated size seems to be linked to the architecture build overhaul in 4.3.2. Since you are likely building your app for "armv6 armv7", it's doubling it for some reason. I recently uploaded my previously 15MB app with minor changes. XCode shows 30MB estimated size for the archive. Sure enough, the new app is actually 15.2MB on the app store.
对于大多数 iOS 应用程序,您或多或少可以忽略 XCode 的“估计”(或大致将其减半)。IPA 是应用程序的大小。估计大小的翻倍似乎与 4.3.2 中的架构构建大修有关。由于您可能正在为“armv6 armv7”构建您的应用程序,因此出于某种原因将其加倍。我最近上传了我之前 15MB 的应用程序,但做了一些小改动。XCode 显示存档的估计大小为 30MB。果然,新应用在应用商店里实际有15.2MB。
If you want a betterestimate, simply right-click the archive in the Organizer and select Show in Finder. There, you can again right-click and drill down into the archive to see the actual package and contents. The app is the only thing of substantive size and is a very good estimation of the App Store size.
如果您想要更好的估计,只需在管理器中右键单击存档并选择在 Finder 中显示。在那里,您可以再次右键单击并深入查看存档以查看实际的包和内容。App 是唯一具有实质性规模的东西,是对 App Store 规模的一个很好的估计。
回答by hotpaw2
The App store encrypts most of your binary executable, which renders it no-longer compressible inside the new ipa file that the App store creates for each customer. You have to look at the uncompressed size of your binary executable and add most of that size to your zip-ed .ipa size to get the new App store .ipa size.
App Store 会加密您的大部分二进制可执行文件,这使得它在 App Store 为每个客户创建的新 ipa 文件中不再可压缩。您必须查看二进制可执行文件的未压缩大小,并将大部分大小添加到压缩后的 .ipa 大小,以获得新的 App Store .ipa 大小。