Daily iOS
Performance and debugging

Designing a crash reporting system

You can't use third-party SDKs, so you have to design your own crash log collection. How do you catch and record a crash inside the app?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Install an NSException handler plus signal (SIGSEGV, SIGABRT, and so on) and Mach exception handlers, write thread stacks, registers, and the binary image list to a file you opened in advance in an async-signal-safe way at crash time, and upload it on the next launch.

Share a question