简体   繁体   中英

Can I Check the App Size Before I Create the “ipa” File?

Is there a way to check my app size before I create the ipa file for app store upload? ie while I work on my app (adding content and methods) - I want to check what would the app size be if I had created the ipa file as is.

An .ipa file is typically a ZIP file with a ".ipa" extension instead of ".zip". This ZIP/IPA file contains some metadata, and the compiled app itself.

  • You can't forcast the size of an app before compiling it, for many reasons, especially the fact that the compiler will make some optimizations of your code and so on.

  • You can't either forcast the size of the IPA, because it will be the result of the ZIP (LZW) compression on the APP payload (+ some other files), and the compression process is also dependant of the content (eg compressing a text file using LZW/ZIP will result in a file that is more or less big depending on the fact that the text contains more or less repetitions, etc).

The only thing you may do is that you can check the sum of the sizes of all your resource files, especially images, video, sounds, etc... you add to your project & app, because of course adding a very big image file will impact the size of your final app bundle and thus the size of your IPA. But that would only be an unprecise approximation on how your final IPA size will change when adding files, without taking the LZW/ZIP compression into account anyway.

当您在产品下构建目标时,您可以在那里看到应用程序文件,您可以在finder中显示它并查看其大小。

In XCode 4.3.1, you can select target as IOS Device and from Product menu choose Archive. It creates the archive. You can view the archive detail from Window->Organizer. There you will

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM