我的应用程序没有错误,警告或内存泄漏,在模拟器上运行完美,但我的iPhone 4上运行iOS 5的黑屏.SIGABRT发生在主线上:
int retVal = UIApplicationMain(argc,argv,nil,nil);
由于我的代码似乎没问题,有没有人知道什么样的东西一般会导致这种行为?
我还能在哪里寻找可能的错误?我得到的所有对SIGABRT的引用都是汇编… 0.o
编辑:
调试器的输出:
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000 sharedlibrary apply-load-rules all target remote-mobile /tmp/.XcodeGDBRemote-4281-83 Switching to remote-macosx protocol mem 0x1000 0x3fffffff cache mem 0x40000000 0xffffffff none mem 0x00000000 0x0fff none [Switching to process 7171 thread 0x1c03] [Switching to process 7171 thread 0x1c03] Couldn't register BearNun.Stack-Meet-App 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.(gdb)
不知道另一个进程在哪里运行…我从iPhone中删除了应用程序,清理了我的项目,然后再次运行它(一旦停止按钮显示为灰色,我认为这意味着程序中没有进程正在运行) .