*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CaptureDelegate doFireTimer:]: unrecognized selector sent to instance 0x1026030e0' *** First throw call stack: ( 0 CoreFoundation 0x00007fff8f22803c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff949d476e objc_exception_throw + 43 2 CoreFoundation 0x00007fff8f22b0ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff8f170e24 ___forwarding___ + 1028 4 CoreFoundation 0x00007fff8f170998 _CF_forwarding_prep_0 + 120 5 Foundation 0x00007fff8e642a23 __NSFireTimer + 95 6 CoreFoundation 0x00007fff8f17b2e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 7 CoreFoundation 0x00007fff8f17af73 __CFRunLoopDoTimer + 1059 8 CoreFoundation 0x00007fff8f1ee53d __CFRunLoopDoTimers + 301 9 CoreFoundation 0x00007fff8f136608 __CFRunLoopRun + 2024 10 CoreFoundation 0x00007fff8f135bd8 CFRunLoopRunSpecific + 296 11 HIToolbox 0x00007fff8dfbc56f RunCurrentEventLoopInMode + 235 12 HIToolbox 0x00007fff8dfbc1ee ReceiveNextEventCommon + 179 13 HIToolbox 0x00007fff8dfbc12b _BlockUntilNextEventMatchingListInModeWithFilter + 71 14 AppKit 0x00007fff954d78ab _DPSNextEvent + 978 15 AppKit 0x00007fff954d6e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346 16 libopencv_highgui.3.1.dylib 0x0000000100bd67c2 cvWaitKey + 306 17 openCVWithServer 0x0000000100003651 main + 2113 18 libdyld.dylib 0x00007fff968775c9 start + 1 19 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException