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 trialJames Brown
2,095 PointsSIGABRT Error in main.m
Hi there, I'm very new to programming and have been following this tutorial, but while my program worked in Part 1, Part 2 builds successfully and then throws up this error.
libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
I've been through the video 3 times and made sure I haven't made any mistakes in the code. Does anyone know what would be causing this? I'm really keen on moving forward with the project.
Thanks, James
3 Answers
Stone Preston
42,016 PointsOk go to your projects settings by clicking on the file at the very top of your file tree on the left side of Xcode. (the file is at the very top and has the blue xcode icon on it. after you click it, the settings page should come up, select the general tab. under deployment info there should be an option for the "main interface". you most likely have the word main in that blank. delete whatever you have there so that the main interface field is blank. then try building again and running
Stone Preston
42,016 Pointsthere should be more information about the error in the console. it should tell you exactly what caused the exception to be thrown. scroll up or down in the console past the SIGABRT error and see if you see anything else. post what you find
James Brown
2,095 PointsHi Stone,
Thanks for your reply, this is what was written in the console:
2014-07-15 21:50:31.138 Space Cat[1036:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle </Users/jamesbrown/Library/Application Support/iPhone Simulator/7.1/Applications/06463DFF-E127-421B-9A59-CF69FEE78EFE/Space Cat.app> (loaded)' *** First throw call stack: ( 0 CoreFoundation 0x019111e4 exceptionPreprocess + 180 1 libobjc.A.dylib 0x016908e5 objc_exception_throw + 44 2 UIKit 0x00792400 -[UIStoryboard name] + 0 3 UIKit 0x0022e692 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 53 4 UIKit 0x0022e949 -[UIApplication _loadMainInterfaceFile] + 245 5 UIKit 0x0022d54e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 543 6 UIKit 0x00241f92 -[UIApplication handleEvent:withNewEvent:] + 3517 7 UIKit 0x00242555 -[UIApplication sendEvent:] + 85 8 UIKit 0x0022f250 _UIApplicationHandleEvent + 683 9 GraphicsServices 0x03906f02 _PurpleEventCallback + 776 10 GraphicsServices 0x03906a0d PurpleEventCallback + 46 11 CoreFoundation 0x0188cca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53 12 CoreFoundation 0x0188c9db __CFRunLoopDoSource1 + 523 13 CoreFoundation 0x018b768c __CFRunLoopRun + 2156 14 CoreFoundation 0x018b69d3 CFRunLoopRunSpecific + 467 15 CoreFoundation 0x018b67eb CFRunLoopRunInMode + 123 16 UIKit 0x0022cd9c -[UIApplication _run] + 840 17 UIKit 0x0022ef9b UIApplicationMain + 1225 18 Space Cat 0x0000412d main + 141 19 libdyld.dylib 0x01f58701 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException