iOS 应用程序在模拟器上运行但在设备上运行?

发布于 2024-12-16 14:58:12 字数 1037 浏览 1 评论 0原文

我的应用程序没有错误、警告或内存泄漏,在模拟器上运行完美,但在运行 iOS 5 的 iPhone 4 上出现黑屏。 SIGABRT 发生在这一行的 main 中

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

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?

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) 

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).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

悲念泪 2024-12-23 14:58:12

我认为你有区分大小写的问题。
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.

I hope it be useful for you!

新人笑 2024-12-23 14:58:12

我遇到了同样的问题。我必须完全关闭我的设备并重新启动它,然后它才开始正常工作。还重新启动了 Xcode。

I ran into the same problem. I had to completely power down my device and restart it and then it started working fine. Also had restarted Xcode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文