How to reduce the size of my iPhone application?

前端 未结 7 765
天涯浪人
天涯浪人 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:31

    Inspecting an .ipa File

    Simply change the extension of an .ipa file to .zip, then open it with Finder to decompress it. Right-click on the unzipped .app bundle and choose "Show Package Contents" to see the resources inside. This can give you an idea of what is using the most space.

    You can examine the compressed size of each item in your .ipa by opening Terminal and executing the following command:

    unzip -lv /path/to/your/app.ipa

    The size column has the compressed size of each file within your .ipa file. You should evaluate this size as you work to reduce the size of resources in your app. You may reduce the size of a resource by a lot, but after producing an .ipa file, you may discover the compressed size of that resource has not changed as dramatically. The most effective technique for reducing the size of an .ipa file is to remove unnecessary resources.

    To access the full article, see the link from Apple Developer Website.

提交回复
热议问题