Corona SDK released iPhone app size

I created the following application for the Corona SDK

local hello = "hello"; print(hello); 

using the iPhone as the target .. The final binary is staggering 8.7 MB.

This is a real problem when I try to deploy a complex application with multiple grfx in a field. I like to believe that I am doing something wrong, and the size of this image may be smaller.

Any ideas or pointers?

According to this blog post, Corona is small .. http://blog.anscamobile.com/2010/02/flash-iphone-and-beyond/

thanks F.

+7
source share
2 answers

If you are a Corona subscriber (Indie or Pro), you will receive an optimized binary file. I just did a test on build 484 (the last public release to date), and HelloWorld is just 2.2 MB on iOS.

Exe is actually a universal binary, that is, it targets the armv6 and arm7 commands (run lipo to see). If we support only one set of commands, Hello World will be only 1.1 MB, which will be less than a 5.25-inch floppy disk!

If you are a trial user, you will receive a non-optimized / trial binary code that is 8.7 MB. The reason is b / c for trial users, we do not optimize the size of the binary code based on the libraries that you β€œrequire” in the Lua code.

For advanced users, the OpenFeint library is included in the non-optimized / trial version, regardless of whether it is actually used. And believe it or not, OpenFeint is responsible for nearly quadrupling the size of Corona code!

+9
source

I do not think this is so important. You must remember that your application must include all the libraries required by Corona. Most of these 8.7 megabytes are the Corona processor itself. What you should also remember can generate a bold default binary, which nearly doubles the size of your application.

+1
source

All Articles