Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
695 views
in Technique[技术] by (71.8m points)

ios - App size double on archiving iphone

I have checked that my app product size is around 10MB but when I build it for archiving it shows me the Appstore size as 20MB i.e. it almost got doubled. But when I see archive in folder its size is still 10MB, I dont know why this happening may be its due to support of both architectures i.e. armv6 and armv7. If I submit the app with 20MB what my final size on the Appstore would come. If anyone have any idea then please let me know.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...