我的应用程序没有错误,警告或内存泄漏,完美运行在模拟器上,但在我的iPhone 4黑屏与iOS 5上运行的SIGABRT
的发生在主在这条线:iOS应用在模拟器上运行,但不是设备?
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上删除了应用程序,清理了我的项目,然后再次运行它(一旦停止按钮变灰,我认为这意味着程序中没有进程正在运行)。
有没有这样的事情作为一个iPhone模拟器。你所指的是iOS * Simulator *,它与仿真器有很大不同(如果它是仿真器,那么它的行为与设备相同(禁止bug))。 –
您可以添加发生崩溃的完整回溯?只需在调试器控制台输入'bt'并在此处粘贴输出即可。 –
嘿,在原始文章中的编辑中添加了调试器输出,因为这里没有足够的空间。 – user990769