Binaries almost 3x larger on Enterprise than Pro (iOS)

Hi, on my latest game the binaries resulting from Corona Enterprise are 156 Mb, while the binaries from Pro were around 65Mb.

To compile I just

  1. Copied the whole project to the Corona folder on Enterprise
  2. Added a small SDK (~250k)
  3. Created the binaries on Xcode

I tried to run the images through optipng to see if that was the problem, but alas, it only shaved ~2-3 mb.

Is there another way that the Pro version of Corona optimizes the binary size that should be applied manually to enterprise?

hmm, is this common? i’m trying to evaluate enterprise and this doesn’t sound so good

@yanuar, no, this is not common. Corona can only account for a maximum of 2.9MB (see below).

@manolo, Building the “App” project using the latest Enterprise (2013.1198), Corona’s total .app bundle size is 2.9MB. The actual Corona binary exe is only 2.6MB and the remainder is resources.

Given that, there’s no way Corona binaries could account for the additional 90MB.

Did you look through the bundle and account for the contribution of all resource files to the final binary size? If I were to guess, the most likely culprit is extra resources getting copied into the bundle, or perhaps even hidden files.


[Update]: The Enterprise exe binary is a tiny bit larger than the Starter/Pro binaries, but not by much: 2.6MB vs 2.3MB. I’m adding this 0.3MB difference on the list of maintenance items.

Ah… probably the repository files got compiled as well??

It used to be a problem back then, basically  everytime we make a build we need to load the project from the backup folder outside the repo

The simple way to tell what’s different between the two app bundles (Enterprise and Pro) is to diff them:

diff -rq myapp-enterprise.app myapp-pro.app

The build process should not include repository files (the Simulator builds definitely don’t) but perhaps this is a bug in the Enterprise build script.  I’ll check.

I checked an Enterprise iOS build and “dot files” (e.g. repository directories like  .hg or .cvs ) are not copied to app bundle by the Corona build script (just like in Simulator builds) so the extra stuff in your app must be coming from somewhere else.

hmm, is this common? i’m trying to evaluate enterprise and this doesn’t sound so good

@yanuar, no, this is not common. Corona can only account for a maximum of 2.9MB (see below).

@manolo, Building the “App” project using the latest Enterprise (2013.1198), Corona’s total .app bundle size is 2.9MB. The actual Corona binary exe is only 2.6MB and the remainder is resources.

Given that, there’s no way Corona binaries could account for the additional 90MB.

Did you look through the bundle and account for the contribution of all resource files to the final binary size? If I were to guess, the most likely culprit is extra resources getting copied into the bundle, or perhaps even hidden files.


[Update]: The Enterprise exe binary is a tiny bit larger than the Starter/Pro binaries, but not by much: 2.6MB vs 2.3MB. I’m adding this 0.3MB difference on the list of maintenance items.

Ah… probably the repository files got compiled as well??

It used to be a problem back then, basically  everytime we make a build we need to load the project from the backup folder outside the repo

The simple way to tell what’s different between the two app bundles (Enterprise and Pro) is to diff them:

diff -rq myapp-enterprise.app myapp-pro.app

The build process should not include repository files (the Simulator builds definitely don’t) but perhaps this is a bug in the Enterprise build script.  I’ll check.

I checked an Enterprise iOS build and “dot files” (e.g. repository directories like  .hg or .cvs ) are not copied to app bundle by the Corona build script (just like in Simulator builds) so the extra stuff in your app must be coming from somewhere else.