My app crashes on device but works on simulator iOS

My app is crashing after my login page on my physical device but it has no issues on the xCode simulator. I have been trying to debug for hours with suggestions I saw online and nothing is working.

I have looked at all the suggestions on other stack questions and nothing works. Please help.

Consider this:

Exception Type:  EXC_BREAKPOINT (SIGTRAP)

This means your app trapped, that is, it detected a bad state and deliberately crash itself. Now this:

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 Moonlight         … InstagramApi.().init() + 312
1 Moonlight         … InstagramApi.().init() + 276
2 Moonlight         … one-time initialization function for shared + 36
3 libdispatch.dylib … _dispatch_client_callout + 20

The trap is coming directly from your code. To make progress with this you need to symbolicate that crash report to uncover the file and line number of the code that crashed. See Adding Identifiable Symbol Names to a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

My app crashes on device but works on simulator iOS
 
 
Q