Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

Singing Up New Users Part 1 Error in Attempting to run App at the end of Video

When I was trying to run the App, I had this error in this main.m

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char *argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}

and the out put says:

2013-08-20 18:34:36.834 Ribbit 1.0[1110:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "wKs-kZ-f6J-view-Qe8-cv-mPd" nib but didn't get a UITableView.' *** First throw call stack: (0x1fb1012 0x1d24e7e 0x1fb0deb 0x10c1357 0xf72ff8 0xf73232 0xf734da 0xf8a20b 0xf8a32d 0xf8adb6 0xf8b89b 0xf8b9b9 0xf8ba45 0x109120b 0xee22dd 0x1d386b0 0xa7ffc0 0xa7433c 0xa7feaf 0xf812bd 0xec9b56 0xec866f 0xec8589 0xec77e4 0xec761e 0xec83d9 0xecb2d2 0xf7599c 0xec2574 0xec276f 0xec2905 0xecb917 0xe8f96c 0xe9094b 0xea1cb5 0xea2beb 0xe94698 0x2a62df9 0x2a62ad0 0x1f26bf5 0x1f26962 0x1f57bb6 0x1f56f44 0x1f56e1b 0xe9017a 0xe91ffc 0x25cd 0x24f5) libc++abi.dylib: terminate called throwing an exception (lldb)

Can anyone help me fix this so I can run it successfully?

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

So from that log output, check out the "reason" that starts on the 2nd line: "reason: '-[UITableViewController loadView] loaded the "wKs-kZ-f6J-view-Qe8-cv-mPd" nib but didn't get a UITableView.'"

That's not very helpful in and of itself, but it gives us a place to start troubleshooting. It mentions a problem with UITableViewController. Since you're working on the Sign Up portion, I'm going to assume that it's the InboxViewController, which is the only table view controller in that flow. I would start by looking at the code in InboxViewController.m and adding some breakpoints to step through it with the debugger. Hopefully you can isolate where the problem is occurring.

And another first or second step would be to Google the error, of course: https://www.google.com/search?q=Terminating+app+due+to+uncaught+exception+'NSInternalInconsistencyException'%2C+&oq=Terminating+app+due+to+uncaught+exception+'NSInternalInconsistencyException'%2C+&aqs=chrome.0.69i57j0l3j69i62l2.1504j0&sourceid=chrome&ie=UTF-8 :smile:

Thanks Ben for the helpful tips. I'm still hunting down the problem, but I'll probably find it eventually.