1

I have created an project of size nearly 5 MB, but after archiving app from xworkspace it increases upto 194Mb and IPA file size upto 70 MB.

Will it fine to have a large size "ipa" for normal application ?

Thank you

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Pratik S. Gode
  • 260
  • 1
  • 3
  • 16
  • not use test certificate and provision profile use client or account specific app certificate – Ravi Panchal May 03 '17 at 06:53
  • Maybe this could help (also it's a bit aged) http://stackoverflow.com/questions/2490910/how-to-reduce-the-size-of-my-iphone-application – d4Rk May 03 '17 at 06:57

2 Answers2

2

It is fine as long as the IPA file size is less than 100 MB. Once the file size becomes larger than 100MB, then it won't be available to download from the Appstore on Cellular Internet. It will be available to download only on WiFi.

I would recommend you inspect the Xcode project to find large dependencies that are causing the file size to increase.

1

If your entire project is only 5Mb size, you may have a dependency or copy build path resources problem.

Double check :

  • do you need all frameworks linked to the project ?
  • do you have a build phase which copy to final resources path unused or unwanted files ?
  • if you use dependency manager suche as cocoapod or carthage: are all the pulled external frameworks necessary ?

If you want to know what are the big files, it's pretty easy once you have the IPA file: rename your ipa with "zip" extension, unarchive, explore

Bonus: Even the finder say to you "XX MB", it's not the final size. To know the final size, you can upload your ipa on ituneconnect, even if you don't want to use it. after processing, in builds list. You can have the final size for each devices. ex:

https://i.stack.imgur.com/fi0HZ.png

As you can see Universal is quite big compared to the specific build for, for ex, iphone 6 !

jlngdt
  • 1,350
  • 9
  • 14
  • Thank you. yes i have checked it out project for larger files. i didn't find any particular larger file . There were all necessary dependencies i had included. – Pratik S. Gode May 03 '17 at 15:23
  • You may have bitcode set to enable... and other thing is dSYM file.To disable then SET Bitcode to NO & Dsym release mode to DWARF. – Nitesh Aug 01 '17 at 14:30
  • @Nitesh IPA files does not include DSYM (it's for .xcarchive), but yes bitcode can enlarge file size, even though, with iOS 11 incoming, it's a good idea to let bitcode setted to true (Apple will recompile it for you) – jlngdt Aug 01 '17 at 14:43
  • @jlngdt Thanks! But when I export .IPA file It gives 2 checkmarks one with dSYm and other with Bitcode. Please explain I'm new...have a look at this : https://stackoverflow.com/questions/45440520/mobile-app-size-on-apple-app-store-with-bitcode-enabled – Nitesh Aug 02 '17 at 14:22
  • @jlngdt So now App Store not take 163 MB as cellular download limits & shows 40 MB to user ? – Nitesh Aug 03 '17 at 08:06