Sunday, May 17, 2026
HomeiOS DevelopmentHow do you add diagnostic info to iOS crash studies?

How do you add diagnostic info to iOS crash studies?

[ad_1]

I might like to have the ability to embrace diagnostic info in an iOS crash report. A part of the motivation is to incorporate extra details about the reason for the error and earlier stack traces.

In my situation I’ve management over an NSException object that’s thrown. That’s, the crashes aren’t attributable to segfaults, for example. Nevertheless, the default crash report (e.g. from TestFlight) hides NSException fields like identify, purpose, and userInfo:

NSException *exception = [NSException exceptionWithName:name
                                                 reason:reason
                                               userInfo:userInfo];
@throw exception;

produces:

Incident Identifier: 00000000-0000-0000-0000-000000000000
{Hardware} Mannequin:      iPhone13,3
Course of:             Instance [12345]
...

Date/Time:           2022-08-11 12:21:45.7780 +0000
Launch Time:         2022-08-11 12:20:45.7780 +0000
OS Model:          iPhone OS 15.6 (19G71)
...

Exception Kind:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Notice:  EXC_CORPSE_NOTIFY
Triggered by Thread:  5

Final Exception Backtrace:
0   CoreFoundation                  0x1951a5288 __exceptionPreprocess + 220 (NSException.m:200)
1   libobjc.A.dylib                 0x1aded4744 objc_exception_throw + 60 (objc-exception.mm:565)
2   Instance                         0x102bc379c -[Example throwException:] + 24 (Instance.m:422)
3   Instance                         0x102bd7964 -[Example _crash] + 984 (Instance.m:222)
...
8   libdispatch.dylib               0x194e14c80 _dispatch_lane_invoke + 392 (queue.c:3944)
9   libdispatch.dylib               0x194e1f500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
10  libsystem_pthread.dylib         0x206b050bc _pthread_wqthread + 288 (pthread.c:2599)
11  libsystem_pthread.dylib         0x206b04e5c start_wqthread + 8

Is there any approach so as to add extra diagnostics info to those crash studies?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments