iphone - Xcode、 Objective-C 、IOS。线程 1 : Program received signal: "SIGABRT". 我做错了什么

标签 iphone objective-c ios xcode4 syntax-error

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

这是我的错误信息:

[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)

最佳答案

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

关于iphone - Xcode、 Objective-C 、IOS。线程 1 : Program received signal: "SIGABRT". 我做错了什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10192533/

相关文章:

ios - 使用 cocoa-touch 构建应用程序;其他语言支持吗?

iphone - UIViewController默认标题字体设置

objective-c - 使用 XCode 3 对 iPhone 静态库进行单元测试

objective-c - 如何在 Swift 中创建指向自身的静态指针变量?

iOS Storyboard - 添加 UINavigationBar 时未出现

objective-c - NSMutableArray 中的错误

iphone - iPhone 5/5th Gen iPod Touch 的加速度计/陀螺仪限制的变化?

iphone - UITableView 代表

iphone - 保留 NSCache 的内容

ios - 在非弧形环境中的 block 内使用 self 和 self 属性