Iphone 目标C:未捕获异常';NSUnknownKeyException';

Iphone 目标C:未捕获异常';NSUnknownKeyException';,iphone,objective-c,ios,xcode,ipad,Iphone,Objective C,Ios,Xcode,Ipad,我有这个错误“线程1:程序收到信号:'SIGABRT'”在这一行 [window addSubview:viewController.view]; 这是什么意思 以下是错误消息: 2011-11-10 10:01:08.334 Paint Brush[1624:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Paint_BrushViewController 0x

我有这个错误“线程1:程序收到信号:'SIGABRT'”在这一行

[window addSubview:viewController.view];
这是什么意思

以下是错误消息:

2011-11-10 10:01:08.334 Paint Brush[1624:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Paint_BrushViewController 0x4b1b1d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key clear.'
*** Call stack at first throw:
(

    0   CoreFoundation                      0x00dc25a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x00f16313 objc_exception_throw + 44
    2   CoreFoundation                      0x00dc24e1 -[NSException raise] + 17
    3   Foundation                          0x00794677 _NSSetUsingKeyValueSetter + 135
    4   Foundation                          0x007945e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
    5   UIKit                               0x0021030c -[UIRuntimeOutletConnection connect] + 112
    6   CoreFoundation                      0x00d388cf -[NSArray makeObjectsPerformSelector:] + 239
    7   UIKit                               0x0020ed23 -[UINib instantiateWithOwner:options:] + 1041
    8   UIKit                               0x00210ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
    9   UIKit                               0x000c6628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
    10  UIKit                               0x000c4134 -[UIViewController loadView] + 120
    11  UIKit                               0x000c400e -[UIViewController view] + 56
    12  Paint Brush                         0x000024ae -[Paint_BrushAppDelegate application:didFinishLaunchingWithOptions:] + 94
    13  UIKit                               0x00014c89 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163
    14  UIKit                               0x00016d88 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 439
    15  UIKit                               0x00021617 -[UIApplication handleEvent:withNewEvent:] + 1533
    16  UIKit                               0x00019abf -[UIApplication sendEvent:] + 71
    17  UIKit                               0x0001ef2e _UIApplicationHandleEvent + 7576
    18  GraphicsServices                    0x00ffb992 PurpleEventCallback + 1550
    19  CoreFoundation                      0x00da3944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    20  CoreFoundation                      0x00d03cf7 __CFRunLoopDoSource1 + 215
    21  CoreFoundation                      0x00d00f83 __CFRunLoopRun + 979
    22  CoreFoundation                      0x00d00840 CFRunLoopRunSpecific + 208
    23  CoreFoundation                      0x00d00761 CFRunLoopRunInMode + 97
    24  UIKit                               0x000167d2 -[UIApplication _run] + 623
    25  UIKit                               0x00022c93 UIApplicationMain + 1160
    26  Paint Brush                         0x00002419 main + 121
    27  Paint Brush                         0x00002395 start + 53
)

terminate called after throwing an instance of 'NSException'
2011-11-10 10:01:08.334画笔[1624:207]***由于未捕获的异常“NSUnknownKeyException”而终止应用程序,原因:“[setValue:forUndefinedKey:]:此类不符合密钥清除的键值编码。”
***第一次抛出时调用堆栈:
(
0 CoreFoundation 0x00dc25a9例外预处理+185
1 libobjc.A.dylib 0x00f16313 objc_异常_抛出+44
2芯基础0x00dc24e1-[N异常升高]+17
3基金会0x079467 7NSSETUSEKIKEVIESETER + 135
4基金会0x07945 E5- [NSbObjs](NSKEY ValueCudid)SETValu:
5 UIKit 0x0021030c-[UIRuntimeOutletConnection connect]+112
6 CoreFoundation 0x00d388cf-[NSArray makeObjectsPerformSelector:+239
7 UIKit 0x0020ed23-[UINib实例化所有者:选项:][1041
8 UIKit 0x00210ab7-[NSBundle(UINSBUNDLEADTIONS)loadNibNamed:owner:options:+168
9 UIKit 0x000c6628-[UIViewController\u loadViewFromNibNamed:bundle:][70
10 UIKit 0x000c4134-[UIViewController loadView]+120
11 UIKit 0x000c400e-[UIViewController视图]+56
12油漆刷0x000024ae-[Paint_BrushAppDelegate应用程序:DidFinishLaunching with Options:+94
13 UIKit 0x00014c89-[UIApplication\u CallInitializationDelegatesForRL:有效负载:挂起:][1163
14 UIKit 0x00016d88-[UIApplication\u runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:+439
15 UIKit 0x00021617-[UIApplication handleEvent:withNewEvent:][1533
16 UIKit 0x00019abf-[UIApplication sendEvent:+71
17 UIKit 0x0001ef2e _UIApplicationHandleEvent+7576
18图形服务0x00ffb992 PurpleEventCallback+1550
19 CoreFoundation 0x00da3944 \uuuuu CFRUNLOOP \u正在调用\uu OUT \uu以执行\uu函数\uuuu+52
20 CoreFoundation 0x00d03cf7\uU CFRunLoopDoSource1+215
21 CoreFoundation 0x00d00f83 _ucfrunlooprun+979
22 CoreFoundation 0x00d00840 CFRunLoopRunSpecific+208
23 CoreFoundation 0x00d00761 CFRUNLOOPSRUNINMODE+97
24 UIKit 0x000167d2-[UIU应用程序运行]+623
25 UIKit 0x00022c93 UIApplicationMain+1160
26油漆刷0x00002419主+121
27油漆刷0x00002395开始+53
)
在抛出“NSException”实例后调用terminate

在此类中,您可能正在设置一个键,而该键可能不是正确的NSString。请检查作为密钥传递的语法或对象。请检查它是否为零。

SIGABRT的
SIGABRT
仅表示该进程已被告知退出。你真正想追查的是那个未知的例外。谢谢!我找到了!这是一个我删除后忘记断开的IBOutlet。