我的应用程序没有错误、警告或内存泄漏,在模拟器上运行完美,但在运行 iOS 5 的 iPhone 4 上出现黑屏。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 中删除了应用程序,清理了我的项目,然后再次运行它(一旦停止按钮变灰,我认为这意味着程序中没有进程正在运行)。
最佳答案
我认为您对区分大小写有疑问。 iOS 模拟器不区分大小写,而设备区分大小写!我建议如果您使用某些文件或类似的东西,请检查您的地址并重试。
希望对你有用!
关于iphone - iOS App 在模拟器上运行但不在设备上运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8192108/