why is my iPhone app so large?

4.2k views Asked by At

I made an iPhone app and it was relatively large at ~40mb+; later I diminished all the PNG images that I use, which resulted in the original ~110mb+ project file being reduced to ~40mb+.

However, when I rebuilt my app I found that the product myApp.app is still ~40mb+, even a little more than before.

So why is this, how can I reduce the size of my app?

3

There are 3 answers

3
zaph On BEST ANSWER

Look at the content of the app bundle to find the sizes of the various components.

In organizer select "projects", select your project, click on the little arrow at the end of the item and you will be in the directory containing your app Navigate down to the .app, right-click and select "Show Package Contents". Examine the items and their sizes.

That should allow you to understand where the size is coming from and perhaps reduce it.

0
Perry On

Look at the sizes of all your object files and the other data that gets loaded into the application during packaging. That will fairly quickly tell you where the space is getting used. (Be sure to look at the individual .o files that go into your final binary.)

0
Kornel On

By default Xcode undoes image optimisations, so you must fix Xcode config to prevent that.