Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reduce the size of .ipa file

I have developed iOS app using swift language.

While generating ipa i selected Save for Adhoc distribution, the ipa size is 7mb.

Now i want to move appstore, so i selected Save for iOS app store deployment, then ipa size is 50mb.

Source code size is 11mb.

Why it is that much difference, Please suggest me.

like image 304
laxman Avatar asked May 08 '16 13:05

laxman


People also ask

How do I reduce the size of an IPA file?

As you inspect your app's IPA file, you may find that your app's binaries take up a lot of space. If you ship your app with data, consider using asset files instead of putting the data into your code. For example, use a property list for bundling any data with your app instead of using strings in code.

Is IPA size same as app size?

APP size is around 5MB for Android but ipa takes almost the double size 11.4MB.


2 Answers

Following solution for hermes enabled and RN 0.64.2

  1. Need to do bitcode enabled - Yes at Build setting tab in xcode.
  2. Need to choose deployment target version above ios 13.1.
  3. Then once do clean & build and then archive. your .ipa file size will be reduce.
like image 86
nadeem naikwade Avatar answered Sep 22 '22 03:09

nadeem naikwade


With the advent of bit code and app thinning, it's more complex to figure out the size of your app that the user will actually download.

You should make sure you are set up to support BitCode and app thinning. Those things will make the IPA file you submit to the app store larger, but the actual IPA that's delivered to the user smaller.

(BitCode uploads an intermediate binary representation of your app's code to the app store, which the app store then compiles for the target device, rather than including a "fat" binary that has separate executables for each target processor.

App thinning causes the system to split out the platform-specific and resolution-specific assets (e.g. non-retina, @2x, and @3x artwork, plus iPad and iPhone specific full-screen images, storyboards, etc.) and only deliver the assets for the user's particular device.)

like image 45
Duncan C Avatar answered Sep 24 '22 03:09

Duncan C