I’m not familiar with Xcode, when I was trying to debug my first application, I get this __TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION__ from my stack trace, and of course I got no idea what that means.

Luckily I found this on iphondevsdk forum, basically if you see this message, there’s actually more information’s available, just open up the console by click Run->Console from the menu, and there it is, your highlighted exception and reason. 

2008-10-11 23:19:34.551 Test[1718:20b] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:’


2 thoughts on “xCode debugging error: TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION

  1. I second that – thanks for the info!

    I honestly can’t believe how confusing the IDE is and how bad the compiler is in XCode. If you type in a method with a typo (like a lower case letter where an upper case one is required) the stupid compiler still compiles but THEN it falls over at execution which is crazy! It should be intelligent enough when it’s linking the libraries to see no such method exists and stop the compilation, but it seems not. (Maybe I’m missing something but nearly every other compiler will do that in my experience.)

    Guess I’m just spoiled by the ease of use of .Net and the fantastic IDE and compiler that it has…. I feel like Xcode and obj-C are more like 80’s development tools than 21st century but I guess I’ll get used to it in time.
    And I shouldn’t complain really as no one’s actually forcing me to do iPhone development… just seems everything is so obtuse and arcane.

    Just my little rant – trying to get into all this stuff is quite a learning curve when you’ve come from .Net, that much I’ll admit. 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s