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

Murat KAYA
Murat KAYA
10,127 Points

socket.io Swift signal sigabrt

 2015-02-02 23:36:35.857 Radio[2047:74388] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Radio.MainViewController 0x7fbf695b8ea0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key sendGesture.'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010ac73f35 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010a90cbb7 objc_exception_throw + 45
    2   CoreFoundation                      0x000000010ac73b79 -[NSException raise] + 9
    3   Foundation                          0x0000000109d037b3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
    4   CoreFoundation                      0x000000010abbde80 -[NSArray makeObjectsPerformSelector:] + 224
    5   UIKit                               0x000000010b568c7d -[UINib instantiateWithOwner:options:] + 1506
    6   UIKit                               0x000000010b7f2572 -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
    7   UIKit                               0x000000010b2a2b92 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 65
    8   UIKit                               0x000000010b2a1c19 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1075
    9   UIKit                               0x000000010b2a0bf2 -[UIApplication workspaceDidEndTransaction:] + 179
    10  FrontBoardServices                  0x000000010e4142a3 __31-[FBSSerialQueue performAsync:]_block_invoke + 16
    11  CoreFoundation                      0x000000010aba953c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
    12  CoreFoundation                      0x000000010ab9f285 __CFRunLoopDoBlocks + 341
    13  CoreFoundation                      0x000000010ab9f045 __CFRunLoopRun + 2389
    14  CoreFoundation                      0x000000010ab9e486 CFRunLoopRunSpecific + 470
    15  UIKit                               0x000000010b2a0669 -[UIApplication _run] + 413
    16  UIKit                               0x000000010b2a3420 UIApplicationMain + 1282
    17  Radio                               0x0000000109b1a7ee top_level_code + 78
    18  Radio                               0x0000000109b1a82a main + 42
    19  libdyld.dylib                       0x000000010d10c145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

I am taking this error in swift.I need solve this problem asap! Would you help me.

2 Answers

Jonas Östlund
Jonas Östlund
3,012 Points

I can just speculate because no source code is visible but from the error message there seems you are trying to set av value to a key "sendGesture", but the key can not be found and therefore the exeption.

Are you sure the key exists before use?

Andrew Shook
Andrew Shook
31,709 Points

It almost looks like they are passing an object when the need to be passing an array or enum.

Murat KAYA
Murat KAYA
10,127 Points

Yes,It worked.I am getting error because of sendGesture Action.I deleted it and it worked.