Your App Gained 12 MB and Nobody Blinked: Making Binary Size a Budget Item
Photo: West Midlands Police from West Midlands, United Kingdom, CC BY-SA 2.0, via Wikimedia Commons
Every release ships a little heavier than the last, and almost nobody decides to add 12 MB. It happens in fifty tiny commits: a new SDK, a hero video someone dropped into the bundle, a set of alternate app icons, a font family with nine weights. Then a product manager asks why installs dipped in a cellular-heavy market, and everyone stares at the analytics dashboard instead of the archive.
Binary size has the worst property a metric can have: it regresses slowly enough that no single release looks guilty. Treat it like a budget line and it stops being a mystery.
Pull the receipt before you theorize
Xcode will tell you exactly what you shipped if you ask. Archive the app, open the Organizer, choose Distribute App, pick App Store Connect, and set App Thinning to all compatible device variants. Export, and Xcode writes an App Thinning Size Report.txt next to the .ipa. That file breaks down download and install size per device variant, and it is the number your users actually pay.
Ignore the single number in the build summary. A universal archive can look terrifying while the iPhone 17 Pro variant is fine. Pick the variant that represents your median user, write its download and install size in a notes file, and keep that file in the repo. You cannot manage a number you only look at during release week. The over-cellular download threshold sits at 200 MB as of 2026, and a lot of teams are closer to it than they think.
Open the .app and sort by weight
Show the archive in Finder, open the .app package, and run du -sh MyApp.app/* | sort -hr | head -30. The output is usually boring and revealing in equal measure. Assets.car is almost always near the top. Frameworks/ is next. Then come the surprises: a leftover .lproj folder for a language you dropped, a PlugIns/ directory holding an extension you forgot was embedded, a 40 MB JSON fixture that shipped because nobody marked it as debug-only.
Do this on a real release archive. Debug builds lie about almost everything.
Asset catalogs are where good intentions pile up
Assets.car is compiled and opaque, but not unreadable. xcrun assetutil --info Assets.car lists what is inside, including per-asset sizes and names. Scan for three things.
First, orphaned images. Design hands off a screen, the screen gets redesigned, the old art stays because deleting assets feels risky. Second, oversized raster art. A full-bleed PNG that should be a JPEG or HEIC will cost you megabytes, and nobody will notice because it looks fine on a Retina display. Third, alternate app icons. Every icon variant is a full set of sizes, and a theme picker with six options can add more weight than your networking layer.
Vector PDFs are not automatically a win. If you check Preserve Vector Data on an asset that never scales, you pay for both representations. Turn it on for glyphs and small icons that need to stretch; leave it off for everything else.
Frameworks: count them, then question them
Open Frameworks/ and count. Every dynamic framework in an iOS app costs load time and disk space, and a lot of teams are shipping twenty of them because each one arrived with a one-line integration. otool -L on your main binary shows what actually links at runtime. lipo -info on each framework confirms you are not shipping a simulator slice in a release build, which happens more often than anyone admits when custom build scripts are involved.
If a framework is only used by one module and is not required to be dynamic, linking it statically usually shrinks the shipped payload and simplifies launch. Do not turn this into a religion. Some SDKs must stay dynamic, and converting a vendor binary is not worth the week.
Check the settings that people toggle and forget
A short checklist for the release configuration:
DEAD_CODE_STRIPPING = YESSTRIP_INSTALLED_PRODUCT = YESSTRIP_SWIFT_SYMBOLS = YESCOPY_PHASE_STRIP = YESENABLE_TESTABILITY = NOSWIFT_OPTIMIZATION_LEVEL = -Osizefor the app target, if benchmarks hold up
Then generate a link map. Set LD_GENERATE_MAP_FILE = YES and point LD_MAP_FILE_PATH somewhere in your derived data. The # Symbols section at the bottom is a ranked list of what your binary is made of. It is not glamorous reading, but it ends arguments. You can also run nm -size -arch arm64 MyApp.app/MyApp | sort -nr | head -40 for a quick look at the heaviest symbols.
One more thing worth checking: dSYMs and bitcode-era artifacts should not be sitting inside the shipped bundle. Confirm that your release configuration is producing debug symbols alongside the archive, not inside the payload.
Move the right things to On-Demand Resources
On-Demand Resources are a good fit for content that is optional on first launch: tutorial videos, sample projects, later chapters of a guided experience, high-resolution art for screens a user might never open. They are a bad fit for anything needed on the first screen, and they are a bad fit for small assets where the request overhead outweighs the savings. Apple caps total ODR storage, so tag and budget it like anything else.
The test is simple: if the app is broken without the asset, it does not belong in ODR. If the asset is optional and heavy, it does.
Give it a number and a gate
Pick a budget per device class, write it down, and fail the build when it moves without a reason. A weekly CI job can archive, export with thinning, read the size report, compare against a committed baseline, and post the delta to the team channel. A 2 MB regression is worth a conversation. A 15 MB regression is worth blocking.
Make the report part of code review for any pull request that adds an SDK, a media asset, or a new icon set. It takes one line in the PR template and saves a quarter of awkward retro conversations.
The 30 MB you never meant to ship was never one decision. It was a hundred small ones, each reasonable in isolation. A budget is how you make the hundredth one visible before your users pay for it.