When running my Flutter app through Xcode on a real iPhone 12 my app crashes because of this error:
EXC_RESOURCE (RESOURCE_TYPE_MEMORY: high watermark memory limit exceeded)
However, on the iPhone 12 simulator I don’t get this error under the same scenario. How can I simulate this error on the simulator? Debug -> Simulate Memory Warning doesn’t do anything.
Both the device and simulator are running iOS 17.5.