Upgraded to Xcode 9 and now app crashes

When I select a UIBarButton to go to the next screen, the app crashes on:


class AppDelegate: UIResponder, UIApplicationDelegate {

with the error:

2017-10-07 18:22:12.033188-0400 AppName[3285:927126] -[tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x131e5df80

2017-10-07 18:22:12.034135-0400 AppName[3285:927126] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x131e5df80'


Everything was working fine before the xcode update and change to Swift 4. Any suggestions on what is causing this for me?

Crickets?? how can selectors stll crash? super frustrating..

There isn't enough information here even to guess at the reason. The correct way to approach this is to set an Obj-C exception breakpoint in Xcode, and to look at the call stack at the point of the error.


The "unrecognized selector" message suggests that the object at 0x131e5df80 isn't a table view data source. That is something that could be investigated when the exception breakpoint is hit.

Upgraded to Xcode 9 and now app crashes
 
 
Q