突然,当我尝试运行我的应用程序会立即切换到main.m文件,并显示我哪些我要去承担这个SIGABRT错误信号中断。我无法弄清楚为什么会这样。而且我不确定我在调试区域看到的是什么。请帮忙!因为main.m文件中的我的手机应用程序突然崩溃
#import <UIKit/UIKit.h>
#import "Mct2AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([Mct2AppDelegate
class]));
}
}
调试器输出:由于重启
Attaching to process 8004. Pending breakpoint 1 - ""main.m":17" resolved Couldn't register com.ebonybutler.Mct2 with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Current language: auto; currently objective-c
二调试器输出:
2012-02-29 16:46:45.561 Mct2[319:f803] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "Menu" nib but the view outlet was not set.' * First throw call stack: (0x13bb052 0x154cd0a 0x1363a78 0x13639e9 0xd7f0d 0xd83a9 0x2415e2 0xd85cb 0x25e4 0x13bcec9 0x155c2 0x1555a 0xbab76 0xbb03f 0xba2fe 0x3aa30 0x3ac56 0x21384 0x14aa9 0x12a5fa9 0x138f1c5 0x12f4022 0x12f290a 0x12f1db4 0x12f1ccb 0x12a4879 0x12a493e 0x12a9b 0x2032 0x1fa5) terminate called throwing an exceptionCurrent language: auto; currently objective-c
检查实际回溯左侧边栏。它很可能在框架代码的某个地方崩溃了,但它显示了'main.m',因为这是它实际上具有源代码的最顶层的栈帧。 – 2012-02-29 20:36:49
请将控制台输出作为开始。这个星期我的水晶球在店里。 :) – picciano 2012-02-29 20:37:29
我也有这样的输出:**附加处理8004 挂起的断点1 - “” main.m文件“:17”解决 无法与引导服务器注册com.ebonybutler.Mct2。错误:未知的错误代码。 这通常意味着此进程的另一个实例已在运行或挂在调试器中。当前语言:auto;目前客观c ** – Maple 2012-02-29 20:37:43