Optimizing binary app size on iPhone / iPod touch

本小妞迷上赌 提交于 2019-12-08 01:44:43

问题


I know that a user can only download up to 20MB over 3G, and my build/Release-iphoneos is showing my app at 26MB.

I'm linking against the three20 iPhone framework.

Is this the final size that will count against the 20MB max when submitted to the App Store?

Is there anything I can do squeeze this even lower? (I'm using a bunch of PNG's converted from JPEG, so I guess I can lower the quality they're being converted at.)

Thanks.


回答1:


It may be that you're actually fine. What actually matters is the app size once it's been compressed, as that's how Apple sends the apps as well. Right(control)-click on your release app and choose Compress. The size of the resulting .zip file is what needs to be less than 20MB.




回答2:


Are you using some kind of sound??? if you are be careful with the format you are using,(in my case, sound is always my biggest problem refering to app size)

And yes, the binary size will be your app size in the appstore too




回答3:


How big is the binary itself? I doubt it contributes much to overall size of the app bundle. Consider using pngcrush (here) on those PNG files. Resources are going to be the biggest place you can make a saving.




回答4:


I think the three20 sdk will increase your app size also (about 1-2M with -all_load flag).




回答5:


If you're using 24-bit PNGs, then you can halve their size with ImageAlpha.

However, if your original images were JPEGs, then keep them in that format, as it doesn't make sense to convert lossy format to lossless (that just inflates the file size without restoring any quality).



来源:https://stackoverflow.com/questions/3922719/optimizing-binary-app-size-on-iphone-ipod-touch

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