corona sdk application size is too big

浪尽此生 提交于 2019-12-03 17:01:32

Variables and code take up almost no space. It's more likely to be either images and sounds or maybe Corona's own libraries are quite big.

Which platform is it too big for? If it's the iOS build then you should know there isn't actually a 20MB limit, that's just the maximum to download over 3G, and iOS apps can actually be up to 2GB if you're downloading on Wi-fi.

Also, it's the compressed size (the .ipa) not the application size (the .app) that the limit applies to, so if your .ipa is under 20MB then it's fine. If you only have the .app and you're not sure how to make a .ipa, try zipping the .app and see how big it is. If the zipped size is under 20MB then it will be under 20MB on the app store.

But to work out why it's so big, here's what to do:

  1. if you're starting from the .ipa, rename it to .zip and then unzip it. Inside is a folder called Payload containing the .app.

  2. right-click on the .app and say "show package contents". That will show you all the files inside.

  3. Sort those files by size and try to work out what the biggest ones are. If they are graphics or sound file then you can try to cut them down by using JPEGs instead of PNGs, or using smaller sound formats. If they are code library files (these tend to not have an extension and have a black terminal icon) then there's probably nothing you can do because it is most likely the core Corona library files that are making your app big.

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