Throw Objective-C exception

Throw an uncaught Objective-C exception.

It's possible to generate a better crash report here compared to the C++ Exception case because NSUncaughtExceptionHandler can be used, which isn't available for C++ extensions.

Provider X86-64
HockeyApp
SDK: 4.1.2 Date: 02/124/2017 (i)
Bugsnag
SDK: 5.0.0 Date: 02/16/2016 (i)
Crashlytics
SDK: 3.4.1 Date: 12/10/2015 (i)
Apple
Date: 06/24/2015 (i)

Expected Report Details:

NSGenericException: An uncaught exception! SCREAM.
-[CRLCrashObjCException crash] (CRLCrashObjCException.m:41)
-[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72)

Click a status icon above to see the crashing thread’s stack trace with further info.

HockeyApp - x86_64

Exception Type:  SIGABRT
Exception Codes: #0 at 0x7fffdf08fdd6
Crashed Thread:  0

Application Specific Information:
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'An uncaught exception! SCREAM.'

Last Exception Backtrace:
0  CoreFoundation        0x00007fffc9a93e63 __exceptionPreprocess + 147
1  libobjc.A.dylib       0x00007fffde67dcad objc_exception_throw + 48
2  CrashLib              0x000000010f97c5b6 -[CRLCrashObjCException crash] (CRLCrashObjCException.m:41)
3  CrashProbe            0x000000010f96cb3d -[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72)
4  libsystem_trace.dylib 0x00007fffdf193c3d _os_activity_initiate + 61
5  AppKit                0x00007fffc7cb7c9c -[NSApplication(NSResponder) sendAction:to:from:] + 456
6  AppKit                0x00007fffc779d460 -[NSControl sendAction:to:] + 86
7  AppKit                0x00007fffc779d388 __26-[NSCell _sendActionFrom:]_block_invoke + 136
8  libsystem_trace.dylib 0x00007fffdf193c3d _os_activity_initiate + 61
9  AppKit                0x00007fffc779d2e0 -[NSCell _sendActionFrom:] + 128
10 AppKit                0x00007fffc77dfcd9 -[NSButtonCell _sendActionFrom:] + 98
11 libsystem_trace.dylib 0x00007fffdf193c3d _os_activity_initiate + 61
12 AppKit                0x00007fffc779bbc6 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2481
13 AppKit                0x00007fffc77dfa12 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 798
14 AppKit                0x00007fffc779a57b -[NSControl mouseDown:] + 832
15 AppKit                0x00007fffc7e2f603 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 6341
16 AppKit                0x00007fffc7e2be20 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1942
17 AppKit                0x00007fffc7e2b2be -[NSWindow(NSEventRouting) sendEvent:] + 541
18 AppKit                0x00007fffc7cb3bf5 -[NSApplication(NSEvent) sendEvent:] + 1145
19 HockeySDK             0x000000010f99f914 -[BITCrashExceptionApplication sendEvent:] (BITCrashExceptionApplication.m:48)
20 AppKit                0x00007fffc752ff81 -[NSApplication run] + 1002
21 AppKit                0x00007fffc74fa850 NSApplicationMain + 1237
22 CrashProbe            0x000000010f96cea4 main (main.m:13)
23 libdyld.dylib         0x00007fffdef61255 start + 1

Bugsnag - x86_64

Exception Type:  EXC_CRASH (SIGABRT)
An uncaught exception! SCREAM.

Missing frame that shows where the crash occured
0 CrashProbe    -[CRLApplication reportException:] (CRLApplication.m:15)
1 AppKit        -[NSApplication run]
2 AppKit        NSApplicationMain
3 CrashProbe    main (main.m:13)
4 libdyld.dylib start

Crashlytics - x86_64

No report

Apple - x86_64

No report