0

即使我将所有框架和代码添加到另一个 Xcode 应用程序中,我仍然在我的应用程序中遇到这个问题。它甚至在视图加载之前发生。

这是我的错误信息:

[Switching to process 11523 thread 0x2d03]
[Switching to process 11523 thread 0x2d03]
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
sharedlibrary apply-load-rules all
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/admin/Library/Developer/Xcode/iOS DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
warning: No copy of dns.so found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
2012-04-17 09:33:30.166 Little Birds! - iPhone[7445:307] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x1129f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key HighScoresPodium.'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x35f08c7b __exceptionPreprocess + 114
    1   libobjc.A.dylib                     0x30186ee8 objc_exception_throw + 40
    2   CoreFoundation                      0x35f08a01 -[NSException dealloc] + 0
    3   Foundation                          0x34018bbf -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 186
    4   Foundation                          0x34018051 _NSSetUsingKeyValueSetter + 92
    5   Foundation                          0x34019ef3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 178
    6   Foundation                          0x33fcb805 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 144
    7   UIKit                               0x33aacf20 -[UIRuntimeOutletConnection connect] + 96
    8   CoreFoundation                      0x35ea9a8b -[NSObject(NSObject) performSelector:] + 18
    9   CoreFoundation                      0x35eb273b -[NSArray makeObjectsPerformSelector:] + 366
    10  UIKit                               0x33aab7a0 -[UINib instantiateWithOwner:options:] + 868
    11  UIKit                               0x33aad640 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 140
    12  UIKit                               0x3386cb18 -[UIApplication _loadMainNibFile] + 144
    13  UIKit                               0x338669ec -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 256
    14  UIKit                               0x338202e4 -[UIApplication handleEvent:withNewEvent:] + 1476
    15  UIKit                               0x3381fb1c -[UIApplication sendEvent:] + 68
    16  UIKit                               0x3381f3b4 _UIApplicationHandleEvent + 6824
    17  GraphicsServices                    0x35262c88 PurpleEventCallback + 1048
    18  CoreFoundation                      0x35e9a5cb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 28
    19  CoreFoundation                      0x35e9a589 __CFRunLoopDoSource1 + 164
    20  CoreFoundation                      0x35e8c835 __CFRunLoopRun + 580
    21  CoreFoundation                      0x35e8c50b CFRunLoopRunSpecific + 226
    22  CoreFoundation                      0x35e8c419 CFRunLoopRunInMode + 60
    23  UIKit                               0x33865554 -[UIApplication _run] + 548
    24  UIKit                               0x33862558 UIApplicationMain + 972
    25  Little Birds! - iPhone              0x0000248f main + 106
    26  Little Birds! - iPhone              0x00002420 start + 40
)
terminate called after throwing an instance of 'NSException'
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
(gdb)
4

3 回答 3

2

对我来说,这似乎是一个死机连接。XIB 中的对象连接到已从所有者类中删除的插座。

于 2012-04-17T14:01:58.853 回答
0

您可以检查 XIB 的接口构建器中的所有连接吗?尝试重新创建 XIB。当我错误地从 IB 中删除标签并在标签上调用 setText 时,我发现了问题。

于 2012-04-17T13:51:53.520 回答
0

看起来您的问题与“HighScoresPodium”有关。您可能错误地为该变量分配了一些东西。检查您将与该属性交互的位置,您应该接近问题。正如其他人所说,问题可能隐藏在 XIB 连接中。

于 2012-04-17T14:04:01.137 回答