Same with Unity - Manual: Reducing the file size of your build, it talks about using .NET 2.0 which I can’t seem to set. Is that still an option in 2018? My project is using 4.6 and won’t seem to let me go lower. I am using the System.xml.dll it mentions but it says that only adds like 1mb which I’m not really worried about.
The build statistics don’t really say where most of the usage is coming from, it seems to be missing 90% of the data:
There’s obviously some opportunity to reduce usage from textures, but I feel like that’s not going to give me the big win I’m looking for , not sure where else to start looking.
There’s a world of difference between the build size that Unity spits out and the eventual final iOS build that is deployed on the device before compilation.
In my case, Unity produces a 950mb iOS build that, when released to the app store, is only around 70mb. In contrast, the Android build is around 50mb. So don’t panic until you’ve actually compiled the app and tested it via Testflight.
P.S. I don’t know anything about your game, but 70mb can be a lot for textures. Are you using sprite atlases and, if yes, are you compressing them?
I’d suggest using texture compression and see where that gets you. I used 2017.2 to launch my first game, and that one I could get down to 60-75mb, depending on how much compression-related loss I was willing to tolerate. In other words, 150mb is definitely not the minimum size.
I set the scripting runtime to 4.x-equivalent, backend to IL2CPP, minimum iOS version to 8.0, and script call optimization to “fast but no exceptions”.
you can calculate more accurate build size using the steps in paragraph Getting an App Size Report here. This is as accurate number as you can get without publishing
Those build statistics are clearly wrong though. Those sizes don’t add up to the complete size, and the percentages don’t add up to 100%. The log should look something like this:
Maybe there’s something wrong with how UCB reports that information from the log? You could try building for iOS on your own machine if you have a Mac.
I’m seeing the same issue, after moving from Mono to IL2CPP we have a 70mb Android .apk and a 130MB (App store compressed size). The extracted size is 300MB and that is what is shown on the App Store page
I have the same issue that the listed category size in total is not equal to the completed size. The percentage sum up is not equal to 100% either. The difference is around 600MB. Does any one know what could this 600MB be?
Cheers
Hello, I’ve been having similar problems with Unity 2019 iOS builds (up to the latest 2019.3.0f3, using URP).
As far as I’ve figured it out there seem to be a couple of problems we’re currently seeing at the same time:
Unity seems to add a lot of extra stuff, bloating the build report size, that then goes away when repackaging and recompressing the app in XCode. So the total build size in the build report for iOS builds doesn’t seem to really matter, or reflect anything useful. Though the asset type totals etc are still useful.
On top of this it seems that Unity is failing to strip some unused resources linked to the new render pipeline and including them in the build and actually affecting the end size (internal shaders and textures), which now makes the base size of a finished app about 50MB instead of the 22MB cited in the documentation. Not sure if this is intentional/expected or a bug.
Don’t quite understand where this file size is coming from:
Build Report
Uncompressed usage by category (Percentages based on user generated assets only):
Textures 11.6 mb 50.2%
Meshes 0.0 kb 0.0%
Animations 4.0 kb 0.0%
Sounds 0.0 kb 0.0%
Shaders 36.4 kb 0.2%
Other Assets 7.0 mb 30.5%
Levels 95.0 kb 0.4%
Scripts 600.9 kb 2.5%
Included DLLs 3.7 mb 16.1%
File headers 41.6 kb 0.2%
Total User Assets 23.1 mb 100.0%
Complete build size 910.1 mb
The math on this doesn’t add up. In the build, the Libraries\libiPhone-lib.a is nearly 600MB on it’s own. I am building in Release with LZ4HC enabled.
I understand the resulting app will be smaller, but I am attempting to use Visual Studio App Center to build, which requires the project to be in a Git branch. A 500+MB file does not jive with most source control systems.