According to AppStoreConnect, one of my apps is benchmarking above the 75% percentile for crashes - at 1.89%.
Using Xcode’s Organizer window, I’m able to see that 98% of them are identified as:
SwiftUI: EnvironmentObject.error() + 236
Cntl-Click / Show in Finder / Cntl-Click / Show Package Contents / Logs reveals the following:
Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [5454]
…and in some of the crash logs, I find this:
Kernel Triage:
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
What is the graceful way to handle a “resource shortage” when the crash logs show that the error occurs immediately upon app launch - ie, while still declaring .environmentObject()s upon the main ContentView()?
Any help?