What determines size of app in App Store?

久未见 提交于 2019-12-11 10:29:18

问题


I'd really appreciate if anyone enlighten me about this issue.

I've an example which is detailed below, if necessary i can give more example.

This is size info about items my app is composed of:

  • Size of .ipa file: 105 mb,

  • Size of application file(located in Payload folder): 184.6 mb,

When i show package contents of application file, i've got executable and media sources whose total size amount is circa 36 mb:

  • Size of executable file: 29.9 mb,

  • Size of media sources(splash images, etc): circa 6 mb

Also, in Symbols folder(which located in the same directory with Payload folder) there are 2 .symbols files. Their sizes are 37.8 mb and 40.4 mb.

Finally, in App Store my application appears with size of 171 mb.

While .ipa file is much more less (105 mb), i cannot get why App Store size is so great. Previously, my apps' size were too close to .ipa file size. However, for last couple of months there are great difference between the sizes(this also valid for updated apps, not only valid for new apps). I could not find updated statement related to this issue on Apple's documentation. If anybody clarify this issue for me or direct me any source on this issue, i'd really be thankful.


回答1:


One difference since iOS 9 is app thinning: "A variant contains only the executable architecture and resources that are needed for the target device."

Many resources not needed for a specific device may be removed, so the size downloaded to a device is based on that device.

There may also now be a difference on how thw esize is reported in the app store since there is no longer one-size fits all devices.

Additionally the upload to the app store may contain Bitcode which is not downloaded to the device.




回答2:


When you upload file your executable is not encrypted so can be packed effectively by zip. However, when you download from the App Store executable is encrypted so it cannot be compressed that good anymore, so IPA size is increased.



来源:https://stackoverflow.com/questions/34200494/what-determines-size-of-app-in-app-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!