Implementing your own [{macOS, iOS}] crash reporter
developer.apple.com