I have an app that on production crashes and the logs that I get are SIGTRAP(TRAP_BRKPT) (:0).I tried to reproduce the crash but I wasn't able to. I wanted to know what can I do in order to catch those (:0) crashes and fix them. They appear in: cellForRow tableView delegate method and IBAction function on segmentController changed value.
Edit:
Crash log:
# Cause: Crash due to signal: SIGTRAP(TRAP_BRKPT) at 1ad08daa4# Reported at: 2020-04-04 18:44:41 UTCThread 0 [Crashed]:0 libswiftCore.dylib 0x1ad08daa4 $specialized _assertionFailure(_:_:file:line:flags:) + 4401 libswiftCore.dylib 0x1aceaa71c _assertionFailure(_:_:file:line:flags:) + 322 Pos 0x100cdea78 PaymentCell.segmentedControlAction(_:) (<compiler-generated>:0)3 Pos 0x100cdeb20 @objc PaymentCell.segmentedControlAction(_:) (<compiler-generated>:0)4 UIKitCore 0x1a3c579ac -[UIApplication sendAction:to:from:forEvent:] + 965 UIKitCore 0x1a368dfbc -[UIControl sendAction:to:forEvent:] + 2406 UIKitCore 0x1a368e320 -[UIControl _sendActionsForEvents:withEvent:] + 4087 UIKitCore 0x1a3c5fc84 _runAfterCACommitDeferredBlocks + 3168 UIKitCore 0x1a3c4f7d4 _cleanUpAfterCAFlushAndRunDeferredBlocks + 2329 UIKitCore 0x1a3c7f744 _afterCACommitHandler + 7610 CoreFoundation 0x19fb4de68 _CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 3211 CoreFoundation 0x19fb48d54 _CFRunLoopDoObservers + 41612 CoreFoundation 0x19fb49320 _CFRunLoopRun + 130813 CoreFoundation 0x19fb48adc CFRunLoopRunSpecific + 46414 GraphicsServices 0x1a9ae9328 GSEventRunModal + 10415 UIKitCore 0x1a3c5663c UIApplicationMain + 193616 Pos 0x100ae34f4 main (AppDelegate.swift:18)17 libdyld.dylib 0x19f9d2360 $start + 4```