ios 估计的应用商店规模

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30620322/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 06:12:22  来源:igfitidea点击:

Estimated app's store size

iosxcode

提问by hasan

After archiving an app version, on the organizer window there was a button, clicking it calculates and displays the estimated size of the app on the store.

归档应用程序版本后,在管理器窗口中有一个按钮,单击它会计算并显示应用程序在商店中的估计大小。

In Xcode 6.2 or later versions, that button disappeared! Is there still a way to know the estimated app size?

在 Xcode 6.2 或更高版本中,该按钮消失了!还有办法知道估计的应用程序大小吗?

回答by Vizllx

Yes, it is still possible, but have to do a little work!

是的,仍然可以,但必须做一些工作!

  1. Just select the project from"Archive", then open package content.

  2. Then in the .xcarchive file, there is an Applications directory.

  3. Now, open the .xcarchive in finder, and select show package contents.

  1. 只需从“存档”中选择项目,然后打开包内容。

  2. 然后在 .xcarchive 文件中,有一个 Applications 目录。

  3. 现在,在 finder 中打开 .xcarchive,然后选择显示包内容。

Finally go to Products then Applications then App Name and you can now view the file size.

最后依次转到产品、应用程序和应用程序名称,您现在可以查看文件大小。

Screenshot step by step:-

截图一步一步:-

enter image description here

在此处输入图片说明



enter image description here

在此处输入图片说明









Update:

更新:

Just in case people have doubt regarding the difference in size of the binary before uploading to iTunes and after uploading to iTunes here is the calculation:-

以防万一人们对上传到 iTunes 之前和上传到 iTunes 之后二进制文件大小的差异有疑问,这里是计算:-

Apple is encrypting the executable file. By doing so its size doesn't change much but its contents do which usually can no longer be compressed as much as before. By putting all this together i came up with a way to calculate the maximum size of your App in the App Store (it will most likely be less than this):

open the .app bundle via right-click -> Show Package Contents (on Mac)
locate the executable file and remember its (uncompressed) size (Size “A”)
delete the executable from the bundle
zip the bundle and remember the bundle's compressed size (Size “B”)

Size “C” are the 100 KB from the additional files added to the bundle by Apple. The final calculation for the maximum size of your App is as follows:

A + B + C = maximum size of your App after approval

The calculation put in words:

(uncompressed executable size) + (app bundle compressed but without executable) + 0,1 MB = maximum size of your App after approval

Apple 正在加密可执行文件。通过这样做,它的大小不会有太大变化,但它的内容会发生变化,通常不能再像以前那样压缩。通过将所有这些放在一起,我想出了一种方法来计算 App Store 中应用程序的最大大小(它很可能小于这个):

open the .app bundle via right-click -> Show Package Contents (on Mac)
locate the executable file and remember its (uncompressed) size (Size “A”)
delete the executable from the bundle
zip the bundle and remember the bundle's compressed size (Size “B”)

大小“C”是 Apple 添加到捆绑包中的其他文件中的 100 KB。您的 App 最大尺寸的最终计算如下:

A + B + C = 批准后应用的最大尺寸

计算如下:

(未压缩的可执行文件大小)+(压缩的应用程序包但没有可执行文件)+ 0,1 MB = 批准后应用程序的最大大小

Referred from this

这里引用

回答by mcatach

I just found out a detailed sizes list on Xcode 7/8/9/10

我刚刚在 Xcode 7/8/9/10 上找到了详细的尺寸列表

Here is how to access it:

以下是访问它的方法:

  1. Log in into iTunes Connect
  2. Select My Apps and click on your App
  3. Select Activity
  4. Select All Builds on the left pane
  5. Choose a Build that you've uploaded to Apple
  6. Select App Store File Sizesunder General Information/Compressed File Size
  1. 登录 iTunes Connect
  2. 选择我的应用程序并单击您的应用程序
  3. 选择活动
  4. 在左侧窗格中选择所有构建
  5. 选择您已上传到 Apple 的 Build
  6. 在一般信息/压缩文件大小下选择App Store文件大小

Perfect! There's a comprehensive list of all devices and sizes that will be available on App Store.

完美的!App Store 上提供了所有设备和尺寸的完整列表。

回答by Vladimir Grigorov

The best way to get app size for all kinds of devices and models after app thinning is to look at the App Thinning Size Report, generated by Xcode. This report is generated when an Ad Hoc build is exported from an Xcode archive file.

在应用精简后获取各种设备和型号的应用大小的最佳方法是查看由 Xcode 生成的应用精简大小报告。当从 Xcode 存档文件导出 Ad Hoc 构建时生成此报告。

  1. Open Window -> Organizer, select the archive and click on Export button.

  2. Choose method of distribution: Ad Hoc; app thinning: All compatible device variants; leave Rebuild from bitcode checked.

  3. Proceed to generate the ipa file. Find the report alongside the generated ipa file titled "App Thinning Size Report.txt". It looks like this:

  1. 打开窗口 -> 管理器,选择存档并单击导出按钮。

  2. 选择分发方式:Ad Hoc;应用瘦身:所有兼容的设备变体;选中从位码重建。

  3. 继续生成ipa文件。在生成的名为“App Thinning Size Report.txt”的 ipa 文件旁边找到报告。它看起来像这样:

App Thinning Size Report for All Variants of MyAppName

Variant: MyAppName-iPad (4th generation)-etc.ipa
Supported devices: iPad (3rd generation) and iPad (4th generation)
App + On Demand Resources size: 50.4 MB compressed, 109.5 MB uncompressed
App size: 28.6 MB compressed, 87.7 MB uncompressed
On Demand Resources size: 21.8 MB compressed, 21.8 MB uncompressed

Variant: MyAppName-iPad Pro (9.7-inch)-etc.ipa
Supported devices: iPad Pro (10.5-inch), iPad Pro (12.9-inch) (2nd generation), and iPad Pro (9.7-inch)
App + On Demand Resources size: 46.6 MB compressed, 110 MB uncompressed
App size: 24.8 MB compressed, 98.2 MB uncompressed
On Demand Resources size: 21.8 MB compressed, 21.8 MB uncompressed

Variant: MyAppName-iPhone 8-etc.ipa
Supported devices: iPhone 7 and iPhone 8
App + On Demand Resources size: 45.9 MB compressed, 109.3 MB uncompressed
App size: 24.4 MB compressed, 87.9 MB uncompressed
On Demand Resources size: 21.4 MB compressed, 21.4 MB uncompressed

...

MyAppName 的所有变体的应用程序细化大小报告

变体:MyAppName-iPad(第 4 代)-etc.ipa
支持的设备:iPad(第 3 代)和 iPad(第 4 代)
App + On Demand 资源大小:50.4 MB 压缩,109.5 MB 未压缩
App 大小:28.6 MB 压缩,87.7 MB未压缩的
按需资源大小:21.8 MB 压缩,21.8 MB 未压缩

变体:MyAppName-iPad Pro (9.7-inch)-etc.ipa
支持的设备:iPad Pro (10.5-inch), iPad Pro (12.9-inch) (2nd generation), and iPad Pro (9.7-inch)
App + On Demand资源大小:46.6 MB 压缩,110 MB 未压缩
应用程序大小:24.8 MB 压缩,98.2 MB 未压缩
按需资源大小:21.8 MB 压缩,21.8 MB 未压缩

变体:MyAppName-iPhone 8-etc.ipa
支持的设备:iPhone 7 和 iPhone 8
App + On Demand 资源大小:45.9 MB 压缩,109.3 MB 未压缩
App 大小:24.4 MB 压缩,87.9 MB 未压缩
On Demand 资源大小:21.4 MB 压缩, 21.4 MB 未压缩

...

回答by Kane Cheshire

If you install on the device, in Settings > General > Storage & iCloud Usage > Manage Storage > [App Name]you can see the size of the app as it's installed on that device.

如果您安装在设备上,Settings > General > Storage & iCloud Usage > Manage Storage > [App Name]您可以在其中看到应用程序安装在该设备上的大小。

Not sure how this works with bit code, but at least it's something and easy to do.

不确定这如何与位代码一起使用,但至少它很容易做到。

回答by Nils Ziehn

UPDATED(thanks to comments of @Marcus Adams) on other answer.

更新(感谢@Marcus Adams 的评论)其他答案。

If you just export it for adhoc you should get a file. Unzip that file. The deployment size will be between this unzipped version and the zipped version.

如果你只是为了临时导出它,你应该得到一个文件。解压那个文件。部署大小将介于此解压缩版本和压缩版本之间。