Crashed: com.apple.main-thread log - ios

I'm getting the below error from crashlytics and I'm having a really hard time trying to decipher it. I've tried to look into the connectButtonTapped method but don't see anything wrong at all. Maybe this isn't even where it's happening.. any ideas?
#0. Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x180643014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x18070b450 pthread_kill + 112
2 libsystem_c.dylib 0x1805b7400 abort + 140
3 libswiftCore.dylib 0x100af3d1c swift_deletedMethodError (__hidden#19885_:285)
4 libswiftCore.dylib 0x100ad5e04 _hidden#19211_ (__hidden#19255_:184)
5 libswiftCore.dylib 0x100ad5e7c swift_dynamicCastClass (__hidden#19255_:270)
6 libswiftCore.dylib 0x100ad5f0c swift_dynamicCastClassUnconditional (__hidden#19255_:294)
7 TestApp. 0x10010a464 specialized vcMeet.connectButtonTapped(sender : vMeetButtonSection) -> () (vcMeet.swift)
8 TestApp 0x100107524 #objc vcMeet.connectButtonTapped(sender : vMeetButtonSection) -> () (vcMeet.swift)
9 TestApp 0x1001075f4 protocol witness for vMeetButtonSectionResponderDelegate.connectButtonTapped(sender : vMeetButtonSection) -> () in conformance vcMeet (vcMeet.swift)
10 HighThere 0x1001380c0 #objc vMeetButtonSection.connectTapped() -> () (vMeetButtonSection.swift)
11 UIKit 0x18755fd30 -[UIApplication sendAction:to:from:forEvent:] + 96
12 UIKit 0x18755fcb0 -[UIControl sendAction:to:forEvent:] + 80
13 UIKit 0x18754a128 -[UIControl _sendActionsForEvents:withEvent:] + 452
14 UIKit 0x18755f59c -[UIControl touchesEnded:withEvent:] + 584
15 UIKit 0x18755f0c4 -[UIWindow _sendTouchesForEvent:] + 2484
16 UIKit 0x18755a328 -[UIWindow sendEvent:] + 2988
17 UIKit 0x18752ada0 -[UIApplication sendEvent:] + 340
18 UIKit 0x187d1475c __dispatchPreprocessedEventFromEventQueue + 2736
19 UIKit 0x187d0e130 __handleEventQueue + 784
20 CoreFoundation 0x181622b5c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
21 CoreFoundation 0x1816224a4 __CFRunLoopDoSources0 + 524
22 CoreFoundation 0x1816200a4 __CFRunLoopRun + 804
23 CoreFoundation 0x18154e2b8 CFRunLoopRunSpecific + 444
24 GraphicsServices 0x183002198 GSEventRunModal + 180
25 UIKit 0x1875957fc -[UIApplication _run] + 684
26 UIKit 0x187590534 UIApplicationMain + 208
27 TestApp 0x10005a8b4 main (tbcSettings.swift:17)
28 libdispatch.dylib 0x1805315b8 (Missing)

Related

app crashing in ipa file only,not crashed when installed with xcode to device

I am stuck in a very weird situation.When i create an IPA and install it in to any device, its crashing at one fixed point.But when i install directly from xcode to device, it works perfectly fine and no crashes.Tried almost every possible solution available, deleting the build folder, cleaning, removing files and adding them again etc..
Below is the crash log for refernce. Any help would be appreciated THanks
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note:
EXC_CORPSE_NOTIFY Triggered by Thread: 0
Application Specific Information: abort() called
Filtered syslog: None found
Last Exception Backtrace:
0 CoreFoundation 0x185e681c0 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x1848a055c objc_exception_throw + 56
2 CoreFoundation 0x185e68108 +[NSException raise:format:] + 116
3 Foundation 0x1868565ac -[NSString rangeOfString:options:range:locale:] + 352
4 Foundation 0x186949f5c -[NSString containsString:] + 68
5 TM iSwift 0x100157528 -[KossexViewController tableView:heightForHeaderInSection:] (KossexViewController.m:1373)
6 UIKit 0x18bd90b20 -[UITableView _delegateWantsHeaderForSection:] + 528
7 UIKit 0x18bd8f7b0 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 208
8 UIKit 0x18c180b7c -[UITableViewRowData _ensureSectionOffsetIsValidForSection:] + 348
9 UIKit 0x18bd8f61c -[UITableViewRowData rectForFooterInSection:heightCanBeGuessed:] + 576
10 UIKit 0x18bd8f380 -[UITableViewRowData heightForTable] + 60
11 UIKit 0x18bd8f1b4 -[UITableView _updateContentSize] + 220
12 UIKit 0x18bfed6f0 -[UITableView _rebuildGeometry] + 44
13 UIKit 0x18bd94b64 -[UITableView didMoveToWindow] + 140
14 UIKit 0x18bcadc1c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1544
15 UIKit 0x18bcd1714 -[UIScrollView _didMoveFromWindow:toWindow:] + 92
16 UIKit 0x18bcacd90 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 156
17 UIKit 0x18bcacbe8 -[UIView(Hierarchy) _postMovedFromSuperview:] + 792
18 UIKit 0x18bcb8ad0 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1788
19 UIKit 0x18bcb83bc -[UIView(Hierarchy) addSubview:] + 828
20 TM iSwift 0x100152428 __34-[KossexViewController createBody]_block_invoke (KossexViewController.m:397)
21 libdispatch.dylib 0x184cf1200 _dispatch_call_block_and_release + 24
22 libdispatch.dylib 0x184cf11c0 _dispatch_client_callout + 16
23 libdispatch.dylib 0x184cf5d6c _dispatch_main_queue_callback_4CF + 1000
24 CoreFoundation 0x185e15f2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
25 CoreFoundation 0x185e13b18 __CFRunLoopRun + 1660
26 CoreFoundation 0x185d42048 CFRunLoopRunSpecific + 444
27 GraphicsServices 0x1877c5198 GSEventRunModal + 180
28 UIKit 0x18bd1c628 -[UIApplication _run] + 684
29 UIKit 0x18bd17360 UIApplicationMain + 208
30 TM iSwift 0x1001384c0 main (main.m:18)
31 libdyld.dylib 0x184d245b8 start + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000184e36014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000184efd460 pthread_kill + 112
2 libsystem_c.dylib 0x0000000184daa3f4 abort + 140
3 libc++abi.dylib 0x00000001848752d4 __cxa_bad_cast + 0
4 libc++abi.dylib 0x0000000184892cc0 default_unexpected_handler() + 0
5 libobjc.A.dylib 0x00000001848a0844 _objc_terminate() + 124
6 libc++abi.dylib 0x000000018488f66c std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x000000018488ef84 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 0
8 libobjc.A.dylib 0x00000001848a0690 _objc_exception_destructor(void*) + 0
9 CoreFoundation 0x0000000185e68108 -[NSException initWithCoder:] + 0
10 Foundation 0x00000001868565ac -[NSString rangeOfString:options:range:locale:] + 352
11 Foundation 0x0000000186949f5c -[NSString containsString:] + 68
12 TM iSwift 0x0000000100157528 -[KossexViewController tableView:heightForHeaderInSection:] (KossexViewController.m:1373)
13 UIKit 0x000000018bd90b20 -[UITableView _delegateWantsHeaderForSection:] + 528
14 UIKit 0x000000018bd8f7b0 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 208
15 UIKit 0x000000018c180b7c -[UITableViewRowData _ensureSectionOffsetIsValidForSection:] + 348
16 UIKit 0x000000018bd8f61c -[UITableViewRowData rectForFooterInSection:heightCanBeGuessed:] + 576
17 UIKit 0x000000018bd8f380 -[UITableViewRowData heightForTable] + 60
18 UIKit 0x000000018bd8f1b4 -[UITableView _updateContentSize] + 220
19 UIKit 0x000000018bfed6f0 -[UITableView _rebuildGeometry] + 44
20 UIKit 0x000000018bd94b64 -[UITableView didMoveToWindow] + 140
21 UIKit 0x000000018bcadc1c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1544
22 UIKit 0x000000018bcd1714 -[UIScrollView _didMoveFromWindow:toWindow:] + 92
23 UIKit 0x000000018bcacd90 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 156
24 UIKit 0x000000018bcacbe8 -[UIView(Hierarchy) _postMovedFromSuperview:] + 792
25 UIKit 0x000000018bcb8ad0 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1788
26 UIKit 0x000000018bcb83bc -[UIView(Hierarchy) addSubview:] + 828
27 TM iSwift 0x0000000100152428 __34-[KossexViewController createBody]_block_invoke (KossexViewController.m:397)
28 libdispatch.dylib 0x0000000184cf1200 _dispatch_call_block_and_release + 24
29 libdispatch.dylib 0x0000000184cf11c0 _dispatch_client_callout + 16
30 libdispatch.dylib 0x0000000184cf5d6c _dispatch_main_queue_callback_4CF + 1000
31 CoreFoundation 0x0000000185e15f2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
32 CoreFoundation 0x0000000185e13b18 __CFRunLoopRun + 1660
33 CoreFoundation 0x0000000185d42048 CFRunLoopRunSpecific + 444
34 GraphicsServices 0x00000001877c5198 GSEventRunModal + 180
35 UIKit 0x000000018bd1c628 -[UIApplication _run] + 684
36 UIKit 0x000000018bd17360 UIApplicationMain + 208
37 TM iSwift 0x00000001001384c0 main (main.m:18)
38 libdyld.dylib 0x0000000184d245b8 start + 4
please see on these lines
(i) [KossexViewController tableView:heightForHeaderInSection:] (KossexViewController.m:1373
(ii) [KossexViewController createBody]_block_invoke (KossexViewController.m:397
if everythink is perfect then edit your scheme from debug to release mode.

Click on button in table cell crash at IBAction ios

I am having three buttons in table view cell when click on button it is crashed strangely in line I am attaching code and crash report please suggest a solution.
Code for button click:
#IBAction func ibaReject(sender: UIButton) {
let notification = notifications[sender.tag]
let notificationHandler = NotificationHandlerFactory.getNotificationHandler(notification)
notificationHandler?.handleNegativeAction(notification,viewController: self)
}
Crash report from crashlytics:
Crashed: com.apple.main-thread
0 Quickride 0x1000c589c specialized NotificationViewController.ibaReject(UIButton) -> () (NotificationViewController.swift)
1 Quickride 0x1000c2d28 #objc NotificationViewController.ibaReject(UIButton) -> () (NotificationViewController.swift)
2 UIKit 0x18d31e7b0 -[UIApplication sendAction:to:from:forEvent:] + 96
3 UIKit 0x18d31e730 -[UIControl sendAction:to:forEvent:] + 80
4 UIKit 0x18d308be4 -[UIControl _sendActionsForEvents:withEvent:] + 452
5 UIKit 0x18d31e01c -[UIControl touchesEnded:withEvent:] + 584
6 UIKit 0x18d31db44 -[UIWindow _sendTouchesForEvent:] + 2484
7 UIKit 0x18d318d8c -[UIWindow sendEvent:] + 2988
8 UIKit 0x18d2e9858 -[UIApplication sendEvent:] + 340
9 UIKit 0x18dad6cb8 __dispatchPreprocessedEventFromEventQueue + 2736
10 UIKit 0x18dad0720 __handleEventQueue + 784
11 CoreFoundation 0x18744e278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
12 CoreFoundation 0x18744dbc0 __CFRunLoopDoSources0 + 524
13 CoreFoundation 0x18744b7c0 __CFRunLoopRun + 804
14 CoreFoundation 0x18737a048 CFRunLoopRunSpecific + 444
15 GraphicsServices 0x188dfd198 GSEventRunModal + 180
16 UIKit 0x18d354628 -[UIApplication _run] + 684
17 UIKit 0x18d34f360 UIApplicationMain + 208
18 Quickride 0x1002d4018 main (AppDelegate.swift:23)
19 libdispatch.dylib 0x18635c5b8 (Missing)

Understanding an iOS stacktrace

I'm kinda new to debugging iOS exceptions.
On the fabric.io site I can see that a few users has seen this crash.
Can anyone please help me get started?
Crashed: com.apple.main-thread
0 gismoapp 0x114760 specialized WeekPlanController.scrollViewWillBeginDragging(UIScrollView) -> () (WeekPlanController.swift:428)
1 gismoapp 0x1144a0 specialized WeekPlanController.scrollViewWillBeginDragging(UIScrollView) -> () (WeekPlanController.swift:428)
2 gismoapp 0x11102c #objc WeekPlanController.scrollViewWillBeginDragging(UIScrollView) -> () (WeekPlanController.swift)
3 UIKit 0x261b4609 -[UIScrollView(UIScrollViewInternal) _scrollViewWillBeginDragging] + 232
4 UIKit 0x261b3a9d -[UIScrollView _updatePanGesture] + 284
5 UIKit 0x265685db _UIGestureRecognizerSendTargetActions + 142
6 UIKit 0x261a08e3 _UIGestureRecognizerSendActions + 170
7 UIKit 0x26030d15 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 1004
8 UIKit 0x2656993f ___UIGestureRecognizerUpdate_block_invoke898 + 62
9 UIKit 0x25ff1587 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 298
10 UIKit 0x25fedaf9 _UIGestureRecognizerUpdate + 2920
11 UIKit 0x2602ec01 -[UIWindow _sendGesturesForEvent:] + 904
12 UIKit 0x2602e3b3 -[UIWindow sendEvent:] + 622
13 UIKit 0x25ffec85 -[UIApplication sendEvent:] + 204
14 UIKit 0x25ffd229 _UIApplicationHandleEventQueue + 5016
15 CoreFoundation 0x219efa67 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
16 CoreFoundation 0x219ef657 __CFRunLoopDoSources0 + 454
17 CoreFoundation 0x219ed9bf __CFRunLoopRun + 806
18 CoreFoundation 0x2193c289 CFRunLoopRunSpecific + 516
19 CoreFoundation 0x2193c07d CFRunLoopRunInMode + 108
20 GraphicsServices 0x22f58af9 GSEventRunModal + 160
21 UIKit 0x260672c5 UIApplicationMain + 144
22 gismoapp 0xb7084 main (AppDelegate.swift:14)
23 libdispatch.dylib 0x215e8873 (Missing)
The code in question:
func scrollViewWillBeginDragging(scrollView: UIScrollView){
if let lastSyncDate = Settings.lastSyncedDate {
// This is line 428 in WeekPlanController
self.refreshControl.attributedTitle = NSAttributedString(string: "last synced \(lastSyncDate.relativeTimeToString()) ago")
}
}

UIApplication crash when open the app after few days

Could you help me with this mysterious crash? It happens when I re-open the app after a few days, so it's practically impossible to debug it :/
Any clue or idea would be super helpful. I'm kinda lost here. Thank you!
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x0000000196a63bd0 objc_msgSend + 16
1 UIKit 0x000000018ab35418 -[UIApplication sendAction:to:from:forEvent:] + 96
2 UIKit 0x000000018ab1e52c -[UIControl _sendActionsForEvents:withEvent:] + 612
3 UIKit 0x000000018ab34db4 -[UIControl touchesEnded:withEvent:] + 592
4 UIKit 0x000000018ab34a40 -[UIWindow _sendTouchesForEvent:] + 700
5 UIKit 0x000000018ab2df94 -[UIWindow sendEvent:] + 684
6 UIKit 0x000000018ab0168c -[UIApplication sendEvent:] + 264
7 UIKit 0x000000018ada060c _UIApplicationHandleEventFromQueueEvent + 14992
8 UIKit 0x000000018aaffbf4 _UIApplicationHandleEventQueue + 1616
9 CoreFoundation 0x000000018630a9ec __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
10 CoreFoundation 0x0000000186309c90 __CFRunLoopDoSources0 + 264
11 CoreFoundation 0x0000000186307d40 __CFRunLoopRun + 712
12 CoreFoundation 0x00000001862350a4 CFRunLoopRunSpecific + 396
13 GraphicsServices 0x000000018f3d75a4 GSEventRunModal + 168
14 UIKit 0x000000018ab66aa4 UIApplicationMain + 1488
15 Wiretap 0x000000010012b604 main (main.m:16)
16 libdyld.dylib 0x00000001970bea08 start + 4

EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000c

my application keeps crashing because of the below error. I tried debugging it but am not able to understand why is it caused and how to debug and remove this..
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x335cef46 objc_msgSend + 5
1 UIKit 0x29307c2b -[UIApplication sendAction:to:from:forEvent:] + 70
2 UIKit 0x29307bd1 -[UIControl sendAction:to:forEvent:] + 44
3 UIKit 0x292f2863 -[UIControl _sendActionsForEvents:withEvent:] + 582
4 UIKit 0x2930763d -[UIControl touchesEnded:withEvent:] + 588
5 UIKit 0x29307317 -[UIWindow _sendTouchesForEvent:] + 522
6 UIKit 0x29300be1 -[UIWindow sendEvent:] + 544
7 UIKit 0x292d73dd -[UIApplication sendEvent:] + 196
8 UIKit 0x2954ac29 _UIApplicationHandleEventFromQueueEvent + 13888
9 UIKit 0x292d5e39 _UIApplicationHandleEventQueue + 1296
10 CoreFoundation 0x25dde377 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
11 CoreFoundation 0x25ddd787 __CFRunLoopDoSources0 + 218
12 CoreFoundation 0x25ddbded __CFRunLoopRun + 772
13 CoreFoundation 0x25d2a211 CFRunLoopRunSpecific + 476
14 CoreFoundation 0x25d2a023 CFRunLoopRunInMode + 106
15 GraphicsServices 0x2d1230a9 GSEventRunModal + 136
16 UIKit 0x293361d1 UIApplicationMain + 1440
17 Application 0x000ffefb main (main.m:17)

Resources