如何在 Xcode 中检查应用程序的近似应用程序商店大小

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

How to check approximate App store size of app in Xcode

iosxcodesize

提问by Jet

I used to do it but I haven't done it in a while and i've added to my game. Don't remember where on Xcode I can check the approximate app store size of my app.

我曾经这样做过,但我有一段时间没有这样做了,我已经添加到我的游戏中。不记得我可以在 Xcode 上的哪个位置查看我的应用程序的大致应用程序商店大小。

I plugged in the iPhone into my mac. I clicked on Windows, Devices expecting it to be there but it wasn't. I don't remember.

我将 iPhone 插入我的 mac。我点击了 Windows,设备希望它在那里,但它没有。我不记得了。

Where on Xcode can I check the approximate app store size of my app?

我可以在 Xcode 的何处查看我的应用程序的大致应用程序商店大小?

采纳答案by josefdlange

The Organizer has this functionality for Archives. So, you'll need to create an archive:

组织者为档案提供此功能。因此,您需要创建一个存档:

  1. Product > Archive (you need the iOS device scheme selected here, which means you need a valid signing identity set up)
  2. Window > Organizer
  3. Select the "Archives" tab.
  4. Select your archive, and in the header detail view, click "Estimate Size"
  1. 产品 > 存档(您需要在此处选择 iOS 设备方案,这意味着您需要设置有效的签名身份)
  2. 窗口 > 管理器
  3. 选择“档案”选项卡。
  4. 选择您的档案,然后在标题详细信息视图中,单击“估计大小”

回答by Sr?an Stani?

To find out what's the size of the file that user will download from the App Store, you need to do the following.

要了解用户将从 App Store 下载的文件的大小,您需要执行以下操作。

  1. Archive your app
  2. Export your archive for testing outside the store. enter image description hereenter image description here

  3. Select “Export for specific devices” and choose “All compatible device variants” from the pop-up menu. enter image description here

  4. Select "Rebuild from bitcode." EDIT: this step doesn't exist since as late as Xcode 9.4.1.

  5. In the output folder, you will find App Thinning Size Report.txt, which breaks down the compressed and uncompressed file sizes, plus the size of any On Demand Resources, for each device type.
  1. 归档您的应用
  2. 导出您的存档以在商店外进行测试。 在此处输入图片说明在此处输入图片说明

  3. 选择“导出特定设备”,然后从弹出菜单中选择“所有兼容设备变体”。 在此处输入图片说明

  4. 选择“从位码重建”。编辑:这一步不存在,因为迟至 Xcode 9.4.1。

  5. 在输出文件夹中,您将找到 App Thinning Size Report.txt,它分解了压缩和未压缩文件的大小,以及每种设备类型的任何按需资源的大小。

For more information take a look at apple docs.

有关更多信息,请查看苹果文档

回答by Trianna Brannon

The organizer in xcode no longer shows this info for some reason. However if you archive your project and in the organizer right click on the file you archived and click "show in finder" and you will be able to see the size when you right click and choose "get info".

由于某种原因,xcode 中的组织者不再显示此信息。但是,如果您存档项目并在组织者中右键单击您存档的文件并单击“在查找器中显示”,则当您右键单击并选择“获取信息”时,您将能够看到大小。

回答by u5150587

I can't see the "Estimate Size" in Xcode (Version 7.0.1).

我在 Xcode(7.0.1 版)中看不到“估计大小”。

Following with josefdlange , I can find the "Show in Finder..." when I Click the header detail view(small icon) .

在 josefdlange 之后,当我单击标题详细信息视图(小图标)时,我可以找到“在 Finder 中显示...”。

enter image description here

在此处输入图片说明