Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Did Apple change their app archiving method?

We've been fighting to get our app under 20 MB so that over-the-air downloading would work, and with our last release 2 weeks ago we succeeded.

It took a bunch of trial-and-error to get right, but eventually we cut our app down to 27MB (uncompressed), which showed up in the store as 19.5MB.

All seemed well, until we did a minor code update to fix some bugs, when suddenly the app store version of the app ballooned to the full uncompressed 27MB size! I just checked the distribution archives, and the newer binary is actually 2k smaller than the older one.

Does anyone have any idea what would cause this?

like image 257
Karl Avatar asked Mar 20 '11 21:03

Karl


People also ask

How do I archive iOS apps?

Start your archiveNavigate to your project's settings. Under iOS (or the target you want to build your app for) > Identity, you'll want to increment the Build number. For example, if the Build number was 1, you'll want to set it to 2. Then, in the top menu, under Product, click on Archive.

What is archiving in iOS?

You can move messages to the Archive folder to help keep your inbox from getting too cluttered. Unlike messages you move to the Bin, archived messages remain in your Archive folder until you delete them. You can view the Archive folder in the Mailboxes list.

What is Xcodebuild?

xcodebuild is a command-line tool that allows you to perform build, query, analyze, test, and archive operations on your Xcode projects and workspaces from the command line. It operates on one or more targets contained in your project, or a scheme contained in your project or workspace.

Why are my iOS apps big?

This size increase can happen when the App Store performs additional processing on your app's binaries, adding DRM to prevent app piracy and then re-compressing the binaries.


1 Answers

In http://www.alexcurylo.com/blog/2010/05/22/tip-shipping-app-size/ there is a way to calculate the final size. In short:

  • open the .app bundle via right-click -> Show Package Contents (on Mac)
  • locate the executable file and remember its (uncompressed) size (Size “A”)
  • delete the executable from the bundle
  • zip the bundle and remember the bundle’s compressed size (Size “B”)
  • Size “C” are the 100 KB from the additional files added to the bundle by Apple.

The final calculation for the maximum size of your App is as follows:

A + B + C = maximum size of your App after approval

in words:

(uncompressed executable size) + (app bundle compressed but without executable) + 0,1 MB = maximum size of your App after approval

like image 129
Matteo Alessani Avatar answered Oct 22 '22 08:10

Matteo Alessani