I'm developing a React Native app using Expo, and I'm encountering crashes on iOS devices. The app is deployed via TestFlight and is also being tested on a physical iPhone. However, I'm struggling to interpret the iOS crash logs and pinpoint the root cause of the crashes.
Issue:
-The app runs fine in development mode.
-On TestFlight and physical devices, it sometimes crashes without clear error messages in the Expo logs
-Having difficulty reading the error logs
Errors:
COSMCtrl applyPolicyDelta unexpected absence of policy on appRecord com.xxxxx.xxxx bg time + grace
BBRemoteDataProvider: <BBDataProviderIdentity 0x300534a00; com.xxxxx.xxxx> does not respond to noteSectionInfoDidChange:
Advisor: No handle found for currently focused PID: 72765; sceneIdentity: com.apple.frontboard.systemappservices/FBSceneManager:sceneID%3Acom.xxxxx.xxxxapp-default
[<_UIKeyboardArbiterClientHandle: 0x30111f8e0; [app<com.xxxxx.xxxx(9BD12DED-F3C3-4C92-82E5-0810D8796F6F)>:72765] <<UIKBArbiterClientFocusContext: 0x302fe1be0; contextID = 6ae54085; sceneIdentity = com.apple.frontboard.systemappservices/FBSceneManager:sceneID%3Acom.xxxxx.xxxx-default >>; hosting PIDs {(
)}; level 0.000000; active NO [wants NO]; suppression 0; iav 0.000000; on screen NO; isAcquiringFocus: YES>] Acquiring focus timer elapsed, clearing acquiring focus state
What I've Tried:
-Checked Expo & React Native logs (npx expo start --clear).
-Enabled Debug Mode on a physical iPhone (device logs via Console.app).
-Reviewed Crash Logs in EAS.
-Checked Apple Developer Logs.
-Looked into App State Changes (AppState.addEventListener) since crashes sometimes happen when the app moves to the background.
Questions:
-How can I properly decode iOS crash logs to identify the cause?
-Are there specific Expo or React Native debugging tools for analyzing iOS crashes?
-Are there common issues with background execution policies that might cause this in React Native?
Tech Stack:
React Native: 0.72+
Expo SDK: 49+
State Management: Context API + SQLite local storage
Auth: SecureStore + JWT + API authentication
Notifications: Expo Notifications API
Backend: Node.js / Express (hosted on Heroku)
Build System: EAS Build for iOS (Managed Workflow)
iPhone Model: iPhone 13 (physical device)
Selecting any option will automatically load the page