Hey, I’m facing random crashes in my WebGL build (Unity 6) on iOS 18.
Everything works fine for devices running iOS 17 or lower.
The crashes seem to be random, as it works sometimes if I reload the page or restart the browser.
Even with a highly optimized, lightweight configuration (minimal scene with just a camera and a light, no depth/opaque textures, HDR off, shadows disabled, tried Gamma & Linear color space, and initial WebAssembly heap set as low as 32 MB).
Answered here, but it seems iOS 18.4 introduced new memory management at the OS level. Depending on the RAM of the devices you support, you’ll have to decrease the size of the build to load initially without issue. The good news is that you can load additional assets after.
As an example, on an iPad 9th gen with 3GB RAM, the compressed build had to be 12MB total or smaller to work. The tolerated size goes up for devices with higher RAM.