App size double on archiving iphone

只谈情不闲聊 提交于 2019-11-29 16:12:00

The iOS App store servers will encrypt the executable binary inside your app bundle for customer downloads, thus making the app much less compressible than your current archive. This is because the random looking bits that result from encryption are not anywhere near as compressible as armv6 or armv7 machine code.

So the way to get a more realistic App store download size is to remove the executable from your app bundle, zip the bundle, note the zip size, then add the uncompressed executable size.

If you have large static data inside your C code that you don't want to obfuscate, then moving that static data into a data file in the bundle might help reduce App store size.

Have you tried unzipping the ipa file (rename .ipa to .zip) and looking at the Payload? Look for unwanted files first. If you don't do a clean build, then the payload will include more junk than you intended. Also, check the size against a release build (not a debug build) because the settings could be different between the two.

Xcode now keeps your debugging symbols (.dSYM file) along with your application bundle (.ipa) so that later crash reports can be symbolicated correctly. The .dSYM file tends to be large, so your overall app bundle (.ipa) may be much larger than the application (.app) alone. Your normally only see the total .ipa size when you Archive your app. At that point, it's a pretty good estimate of how big the app will actually be on the App Store.

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