2

I'd like my app be under 20Mb limit.

Old posts talk about zipping an app and see the file size.
But archiving through xcode4, and submitting through organizer doesn't show the file.

Archive file listed in organizer is *.xarchive format,(I'm not sure this is equivalent of the zip file in the past) and mine shows 45mb.
And it's taking insanely long to submit the archive(about 2 hours).

I checked the app size when I used xcode3, and it was about 16mb and something should have been messed up.

Related question is:

  1. When my app's project directory is MyAppDirectory, does everything under that directory gets included in the binary or just stuff which I add to the project in xcode?

  2. I copy images/sound files to Resources using "copy files" in "Build phases", does that make the same images/sound files to be included in the binary twice?(how do I check?)

4

1 回答 1

0

存档后转到管理器并选择共享。然后从那里创建 ipa,当您将应用程序上传到应用商店时,ipa 是应用程序的(大约)大小。

  1. 否和是,已添加到目标的所有非源文件都将复制到 .app 文件夹中(iOS 应用程序只是文件夹)。所有源代码文件都将被编译成二进制文件,该二进制文件也包含在 .app 文件夹中。然后将其压缩,然后重命名为 .ipa (在称为“有效负载”的导向器中使用 .app 文件夹)。

  2. 不,所有文件都复制一次到 .app 文件夹,如果它被复制两次,您将收到警告,但如果您使用文件夹并且相同的文件位于项目的多个文件夹中,那么它将被复制多次(对于每个文件夹)到.app

您可以轻松查看项目中是否有文件夹,它们是蓝色文件夹而不是黄色文件夹,它们是组。

于 2011-06-30T08:47:11.767 回答