".ipa" file size problems -xcode archive

I created a project that is almost 5MB in size, but after zipping the app from xworkspace, it grows to 194MB and the IPA file size is up to 70MB.

Would it be nice to have a large "ipa" size for a normal application?

thank

+3


source to share


2 answers


If your entire project is only 5MB in size, you may have a dependency or copy resource issue.

Double check:

  • Do you need all the frameworks related to a project?
  • Do you have a build phase that copies the path to unused or unwanted files to the target resource?
  • If you are using dependency manager suche like cocoapod

    or carthage

    : are all external external frameworks needed?

If you want to know what large files are, it's pretty easy when you have an IPA file: rename your ipa with "zip" extension, unzip, investigate



Bonus: Even the finder tells you "XX MB" is not the final size. To find out the final size, you can upload your ipa to ituneconnect even if you don't want to use it. after processing, in the assembly list. You can have a finite size for each device. eg:

/img/8f86959ca94b7b7704657bc5fd4ba777.png

As you can see, Universal

quite large compared to a specific build for, for example, iphone 6!

+1


source


This is fine if the IPA file is less than 100 MB. Once the file size exceeds 100 MB, it will not be available for download from the Appstore on Cellular Internet. It will only be available for download on WiFi.



I would recommend that you check your Xcode project to find large dependencies that are causing the file size to grow.

+2


source







All Articles