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

iOS

Downloading and Parsing JSON Data--A Crash Story

So at the end of the Downloading and Parsing JSON Data tutorial, I ran into an 'uncaught exception' in my main.m, which looks like this:

```#import <UIKit/UIKit.h>

import "GRAppDelegate.h"

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

The console tells me it was a SIGABRT error, and that it happened at this line:

```return UIApplicationMain(argc, argv, nil, NSStringFromClass([GRAppDelegate class]));

I placed a breakpoint at this line, and added one for exceptions as well. I couldn't get anything useful out of it. Helllp.

2 Answers

Stone Preston
Stone Preston
42,016 Points

there should be more information in the console about what caused the actual exception. run your app and when it crashes look in the console for more information and post it here.

Thomas Nilsen
Thomas Nilsen
14,957 Points

Stone is right. Even when the app crashes you should be able to press the button that looks like "play". Press that a couple of times and you should get an error in the console that you could work with.

If not - share your project through a dropbox link so we can have a look