Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Carmen Ibarcena
iOS Development Techdegree Student 8,296 PointsDoing a calculator but is showing an error that says Thread 1: Signal SIGBRT on the App Delagate
When I do run time it shows
2 Answers
miikis
44,957 PointsHey Carmen,
Without seeing your code, it's gonna be difficult to accurately diagnose the problem. Regardless, this type of thing usually happens when you delete an IBAction, or IBOutlet in your code but you forget to delete the connection in Interface Builder. Let me know if that made no sense at all.
Carmen Ibarcena
iOS Development Techdegree Student 8,296 PointsThis is the error I get on the debug area. Thank you for your help Mikis Woodwinter!
2017-01-13 11:54:27.206 Calendar ao[5125:1260693] -[Calendar_a_o.ViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x7fa8f2f07b40 2017-01-13 11:54:27.210 Calendar ao[5125:1260693] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Calendar_a_o.ViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x7fa8f2f07b40' *** First throw call stack: ( 0 CoreFoundation 0x000000010c6f234b exceptionPreprocess + 171 1 libobjc.A.dylib 0x0000000109a0621e objc_exception_throw + 48 2 CoreFoundation 0x000000010c761f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 CoreFoundation 0x000000010c677c15 ___forwarding_ + 1013 4 CoreFoundation 0x000000010c677798 CF_forwarding_prep_0 + 120 5 UIKit 0x000000010a04be83 -[UITableView _numberOfRowsInSection:] + 57 6 UIKit 0x000000010a285ccc -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 2426 7 UIKit 0x000000010a28bd31 -[UITableViewRowData rectForFooterInSection:heightCanBeGuessed:] + 501 8 UIKit 0x000000010a28be8f -[UITableViewRowData heightForTable] + 56 9 UIKit 0x000000010a00df36 -[UITableView _updateContentSize] + 381 10 UIKit 0x000000010a03646f -[UITableView _rebuildGeometry] + 40 11 UIKit 0x000000010a034419 -[UITableView didMoveToWindow] + 146 12 UIKit 0x0000000109f936f1 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1799 13 UIKit 0x0000000109fab0e2 -[UIScrollView _didMoveFromWindow:toWindow:] + 85 14 UIKit 0x0000000109f9331d -[UIView(Internal) _didMoveFromWindow:toWindow:] + 819 15 UIKit 0x0000000109f866b4 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 151 16 UIKit 0x0000000109f865a2 -[UIView(Hierarchy) _postMovedFromSuperview:] + 857 17 UIKit 0x0000000109f962eb -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1982 18 UIKit 0x0000000109f847a1 -[UIView(Hierarchy) addSubview:] + 838 19 UIKit 0x0000000109f40f5b -[UIWindow addRootViewControllerViewIfPossible] + 849 20 UIKit 0x0000000109f413a2 -[UIWindow _setHidden:forced:] + 293 21 UIKit 0x000000011ac1d60a -[UIWindowAccessibility _orderFrontWithoutMakingKey] + 89 22 UIKit 0x0000000109f54cb5 -[UIWindow makeKeyAndVisible] + 42 23 UIKit 0x0000000109ecdc89 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4818 24 UIKit 0x0000000109ed3de9 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731 25 UIKit 0x0000000109ed0f69 -[UIApplication workspaceDidEndTransaction:] + 188 26 FrontBoardServices 0x000000010ddb6723 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK_ + 24 27 FrontBoardServices 0x000000010ddb659c -[FBSSerialQueue performNext] + 189 28 FrontBoardServices 0x000000010ddb6925 -[FBSSerialQueue _performNextFromRunLoopSource] + 45 29 CoreFoundation 0x000000010c697311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 17 30 CoreFoundation 0x000000010c67c59c __CFRunLoopDoSources0 + 556 31 CoreFoundation 0x000000010c67ba86 __CFRunLoopRun + 918 32 CoreFoundation 0x000000010c67b494 CFRunLoopRunSpecific + 420 33 UIKit 0x0000000109ecf7e6 -[UIApplication _run] + 434 34 UIKit 0x0000000109ed5964 UIApplicationMain + 159 35 ao 0x000000010942395f main + 111 36 libdyld.dylib 0x000000010d61f68d start + 1 37 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException
Carmen Ibarcena
iOS Development Techdegree Student 8,296 PointsCarmen Ibarcena
iOS Development Techdegree Student 8,296 PointsThanks for your answer Mikis, I have not delete any IBAction or IBOulet. Below I posted the error that I am getting.
Thank you for your help
miikis
44,957 Pointsmiikis
44,957 PointsCheck and make sure that your ViewController is connected properly. Also, if you're using a TableView, it needs a delegate and a dataSource. If you want your ViewController to be both the delegate and the dataSource, you have to set this up in Interface Builder... or in your code via something like this:
If that doesn't work, I'll need to see your code.