iOS应用程序在模拟器上运行但不是设备? [英] iOS App runs on simulator but not device?

查看:239
本文介绍了iOS应用程序在模拟器上运行但不是设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序没有错误,警告或内存泄漏,在模拟器上运行无瑕疵,但在我的iPhone 4上运行iOS 5的黑屏。 SIGABRT in main on this line:

My application has no errors, warnings or memory leaks, runs flawlessly on the simulator, but black screens on my iPhone 4 running with iOS 5. The SIGABRT's happens in main on this line:

int retVal = UIApplicationMain(argc, argv, nil, nil);

由于我的代码似乎确定,有没有人知道什么样的东西通常会导致这种行为?

Since my code seems ok, does anyone know what kind of things in general can cause this kind of behavior?

我在哪里可以找到可能的错误?所有对这个 SIGABRT 的引用都在汇编... 0.o

Where else can I look for possible errors? All the references to this SIGABRT I'm getting are in assembly... 0.o

EDIT:
调试器的输出:

Output from the debugger:

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删除了应用程序,清理我的项目,然后再次运行(一旦停止按钮灰色,我认为这意味着没有进程程序正在运行)。

Not sure where another process would be running...I deleted the app from the iPhone, cleaned my project, and then ran it again (once the stop button was greyed out, I thought that meant that no processes in the program were running).

推荐答案

我认为你有区分大小写的问题。
iOS模拟器不区分大小写,而设备是!我建议如果你使用一些文件或类似的东西,请检查你的地址,然后重试。

I think you have problem with case-sensitive. The iOS simulator isn't case-sensitive while the device is! I suggest if you work with some files or something like that, check your address and try again.

我希望对你有用!

这篇关于iOS应用程序在模拟器上运行但不是设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆