platform-ios.md
attributes
| source_path | references/platform-ios.md |
|---|---|
| source_sha256 | 16046a4942cbad37368cc03bbe3b9fb1378ec179567a4f6902147a06880b95a6 |
| source_url | https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/523eb36dee00ab9c4c1d7a5eff1406e49ea5bc10/skills/unity/unity-build-size/references/platform-ios.md |
| supporting_skill_id | 40402 |
| upstream_revision | 523eb36dee00ab9c4c1d7a5eff1406e49ea5bc10 |
iOS (App Store, TestFlight)
Read this when the target is iPhone or iPad. Pass --platform iPhone to the checker (that is the
.meta name for iOS). Checked against the Unity 6000.3 manual and Apple's docs (2026-11).
What is limited
- App Store: 4 GB uncompressed app, and 500 MB for the
__TEXTsections of the executable
(deployment target iOS 9 or later)
(Maximum build file sizes). - Cellular download: Unity's manual still names a 200 MB over-the-air limit, which users can
override since iOS 13; leave a margin under it if the user cares
(Optimize the size of the iOS Player). - The App Store encrypts the binary before it compresses it, so the store size comes out larger
than a local zip of the same app (same page).
The Xcode project Unity writes, and the .app inside a local build, are not what users download.
Measure the thinned variants instead
(Reducing your app's size):
- In Xcode, Product → Archive.
- Export the archive as Ad Hoc or Development, and set App Thinning to "All compatible device
variants". - Read
App Thinning Size Report.txtin the export folder: compressed and uncompressed size per
device variant.
After an upload, App Store Connect shows the build's file sizes on its build metadata page.
First moves, in order
- Archive a release build in Xcode 26 or later (App Store Connect requires it since
2026-04-28). Debug builds keep symbols and are not representative. - Textures and audio: the main workflow with
--platform iPhone. ASTC is the preferred format;
only the oldest Metal devices (A7) lack it and unpack it at runtime
(Choose a GPU texture format by platform). - Code size: Strip Engine Code, Managed Stripping Level, API Compatibility Level .NET
Standard. Stripping and its breakage belong tounity-build-pipeline. - Compression Method: iOS has no compression by default. LZ4HC shrinks the installed data;
the IPA is a zip already, so check the thinning report before you claim a smaller download. - Large optional content: On-Demand Resources (Player Settings → Use on-demand resources,
AssetBundles tagged for download) keep it out of the initial install
(On-demand resources).
Apple deprecated the On-Demand Resources API in iOS 27 ("Use Background Assets instead",
NSBundleResourceRequest),
and Unity's manual does not cover Background Assets.
Tell the user before a new project depends on ODR. - Ignore bitcode advice. Xcode 14 deprecated bitcode and the App Store no longer accepts
bitcode submissions, so old guides about bitcode inflating the upload do not apply
(Xcode 14 release notes).
Prove it
Install the exported build on a device (Xcode → Window → Devices and Simulators, or TestFlight),
play to gameplay, and look at the assets you changed.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.