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 Build a Self-Destructing Message iPhone App Using Parse.com as a Backend and Adding Users Logging In and Logging Out

Romain Gaget
Romain Gaget
24,449 Points

Ribbit Application is crashing

I've got the following error message when trying to launch my application:I've been trying to find out whats wrong but couldn't put my finger on it.Please Help!!!

2014-05-31 11:07:40.115 Ribbit[1624:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<InboxViewController 0x9a45f50> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key logout.' *** First throw call stack: ( 0 CoreFoundation 0x026391e4 exceptionPreprocess + 180 1 libobjc.A.dylib 0x023b88e5 objc_exception_throw + 44 2 CoreFoundation 0x026c8fe1 -[NSException raise] + 17 3 Foundation 0x02078d9e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282 4 Foundation 0x01fe51d7 _NSSetUsingKeyValueSetter + 88 5 Foundation 0x01fe4731 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267 6 Foundation 0x02046b0a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412 7 UIKit 0x0132f1f4 -[UIRuntimeOutletConnection connect] + 106 8 libobjc.A.dylib 0x023ca7de -[NSObject performSelector:] + 62 9 CoreFoundation 0x0263476a -[NSArray makeObjectsPerformSelector:] + 314 10 UIKit 0x0132dd4d -[UINib instantiateWithOwner:options:] + 1417 11 UIKit 0x015dc8bd -[UIStoryboard instantiateViewControllerWithIdentifier:] + 220 12 UIKit 0x015dca36 -[UIStoryboard instantiateInitialViewController] + 74 13 UIKit 0x010786ac -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 79 14 UIKit 0x01078949 -[UIApplication _loadMainInterfaceFile] + 245 15 UIKit 0x0107754e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 543 16 UIKit 0x0108bf92 -[UIApplication handleEvent:withNewEvent:] + 3517 17 UIKit 0x0108c555 -[UIApplication sendEvent:] + 85 18 UIKit 0x01079250 _UIApplicationHandleEvent + 683 19 GraphicsServices 0x036bcf02 _PurpleEventCallback + 776 20 GraphicsServices 0x036bca0d PurpleEventCallback + 46 21 CoreFoundation 0x025b4ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53 22 CoreFoundation 0x025b49db __CFRunLoopDoSource1 + 523 23 CoreFoundation 0x025df68c __CFRunLoopRun + 2156 24 CoreFoundation 0x025de9d3 CFRunLoopRunSpecific + 467 25 CoreFoundation 0x025de7eb CFRunLoopRunInMode + 123 26 UIKit 0x01076d9c -[UIApplication _run] + 840 27 UIKit 0x01078f9b UIApplicationMain + 1225 28 Ribbit 0x00002e1d main + 141 29 libdyld.dylib 0x02eb9701 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

4 Answers

Romain Gaget
Romain Gaget
24,449 Points

Craig,

Look at the utility panel --> connection inspector and make sure you've got one line in sent actions for the log out button. If i remember for some reason i also add something in the referencing outlets so i just removed it and it worked.

Romain Gaget
Romain Gaget
24,449 Points

Never mind i found the issue :))