Wang Liang
Wang Liang

Reputation: 943

why is my iPhone app so large?

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?

Upvotes: 2

Views: 4246

Answers (3)

Kornel
Kornel

Reputation: 100210

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

Upvotes: 2

zaph
zaph

Reputation: 112873

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.

Upvotes: 7

Perry
Perry

Reputation: 4495

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.)

Upvotes: 0

Related Questions