Framework Size question

Discussion in 'iOS Programming' started by erdinc27, Sep 2, 2018.

  1. erdinc27 macrumors regular

    Joined:
    Jul 20, 2011
    #1
    Hi all. I have imported a framework in my application. The framework size is around 350 MB. When I try to download the application from TestFligt then its size is shown 2 MB. I have some questions about it,
    - Is it normal?
    - Is the application size is different in TestFlight than the AppStore?
    - How it is compressed from 350 MB to 2 MB?
     
  2. PhoneyDeveloper macrumors 68040

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    When an app is distributed from TestFlight it is similar to how it would be distributed from the AppStore. There is a thinning process so that code and resources that won't be used on a given device are removed. For instance if a target device has a retina screen (@2x) most or all @3x and 1x images will be stripped. Separate binaries are produced for each possible target device. There is no compression per se, only unused resources and code are removed.

    Having said that, I don't know how a reduction from 350MB to 2MB happens. I think you would need to unpack the .ipa file and see what changed? Also, try .ipa files that were downloaded to different devices if you can. I'm going to guess that 350MB isn't all code.
     

Share This Page