I’m doing a device build of “HelloWorld” for IOS and the executable size is about 7.5MB which seems quite large for a simple app that a couple lines of code and 1 image. Is anyone else seeing this? Is this the benchmark build size for even the simplest app? [import]uid: 13727 topic_id: 5781 reply_id: 305781[/import]
That doesn’t sound right. What is the resolution of the image that you’re using? Do you have other files in your folder? Those would be packed into the binary as well. Get rid of any test or junk files you might have. [import]uid: 8045 topic_id: 5781 reply_id: 19836[/import]
Corona takes all you files in that folder and packs it into the package when built, so remove all files that you don’t use from the folder and test again =)
[import]uid: 9577 topic_id: 5781 reply_id: 19902[/import]
There are no other files in that folder. Just these
config.lua
Icon.png
Icon@2x.png
main.lua
world.jpg
Combined they all total to 75K.
[import]uid: 13727 topic_id: 5781 reply_id: 19944[/import]
That is a bit strange. I just quickly compiled a binary for device and tops is about 2.2mb and that includes all the Corona files.
Stranger still is that they all total 75k when the world.jpg pic should be about 287k. I think it’s your Icon@2x.png. Check the resolution on that file. In total, my folder is about 307k. [import]uid: 8045 topic_id: 5781 reply_id: 19950[/import]
My world.jpg is a 72dpi 320x480 JPG totaling 41K. The Icon@2x.png is a 114x114 72dpi PNG totaling 16K. These are the largest resources in the folder. I also checked to make sure there weren’t any hidden dot files sneaking into the build. This build still comes out to 7.5MB. Also tried installing on a different machine and I get the same results. [import]uid: 13727 topic_id: 5781 reply_id: 19955[/import]
If you want to PM me the files I can have a look and see what I get when I compile using your files. That seems very off to be ending up with almost 8MB on the simplest app.
Erm, anyone from Ansca want to chime in? [import]uid: 8045 topic_id: 5781 reply_id: 19957[/import]
I think the answer is that for Trial builds, we don’t optimize for size. OpenFeint has a ton of resource files and we include those in the Trial build right now. For Subscription builds, we try to detect if you are using OpenFeint and bundle the resources as appropriate.
[import]uid: 7563 topic_id: 5781 reply_id: 20045[/import]
Ah, yes I am doing a trial build. However, I was planning on using OpenFeint in my app. Now I’m not so sure I’d like to use it if it’s going to add that much bulk. Thanks for the response! [import]uid: 13727 topic_id: 5781 reply_id: 20060[/import]