How to reduce the size of my iPhone application?

前端 未结 7 781
天涯浪人
天涯浪人 2020-11-28 02:49

Alternative Titles (to aid searches)

Compressing PNGs

Reduce the size of an iPhone Archive (.ipa)

Adding a build rule to compress images i

7条回答
  •  甜味超标
    2020-11-28 03:29

    A debug build will usually be much larger than a release build. Try building in release mode.

    There's a few compiler options that may help too. Not sure whats default for iphone release mode though. -Os will optimize for a smaller binary. There's also an option for dead code stripping that will remove any code that can never be run. Also you might try stripping the binary .. not sure if that works for iphone binaries though.

    This is assuming that your problem is due to executable binary size and not the image resources.

提交回复
热议问题