当设备未连接到Xcode时崩溃应用程序

编程入门 行业动态 更新时间:2024-10-24 14:16:25
本文介绍了当设备未连接到Xcode时崩溃应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我遇到这个奇怪的行为与我的iPhone应用程序。它运行良好在设备上调试与Xcode,但是当它运行在设备上,当设备没有连接到我的电脑,它几乎立即崩溃。不用说,我觉得这有点令人不安,因为我不知道如何调试它。

I've encountered this weird behavior with my iPhone app. It runs fine on the device when being debugged with Xcode, but when it's run on the device when the device is not connected to my computer it crashes almost immediately. Needless to say, I find this a bit disconcerting since I'm not sure how to debug it.

任何人都有想法,如何进行或如何调试这种类型问题?

Anyone have ideas on what's going on or how to debug this type of problem?

当我重新连接设备并获取以下内容时,我查看了崩溃报告:

I looked in the crash report when I reconnect the device and get the following:

Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000070 Crashed Thread: 6 Thread 6 Crashed: 0 libobjc.A.dylib 0x300102ac 0x3000c000 + 17068 1 myapp 0x000033ba 0x1000 + 9146 2 myapp 0x0000adc8 0x1000 + 40392 3 Foundation 0x30553356 0x30501000 + 336726 4 Foundation 0x305025fe 0x30501000 + 5630 5 libSystem.B.dylib 0x31d6a6ea 0x31d46000 + 149226

,控制台日志具有以下内容:

and the console log has the following:

Sun Sep 27 19:59:50 unknown ReportCrash[455] <Notice>: Formulating crash report for process myapp[453] Sun Sep 27 19:59:50 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.yourcompany.myapp[0x2fba]) Job appears to have crashed: Bus error Sun Sep 27 19:59:50 unknown com.apple.mobile.lockdown[14] <Notice>: Could not receive size of message Sun Sep 27 19:59:50 unknown lockdownd[14] <Error>: (0x834400) handle_connection: Could not receive internal message #2 from myapp Killing connection Sun Sep 27 19:59:50 unknown SpringBoard[23] <Warning>: Application 'myapp' exited abnormally with signal 10: Bus error

非常感谢

推荐答案

你总是可以得到你的应用程序的行崩溃。打开构建文件夹上的终端并运行以下命令:

You can always get to the line of your app where it crash. Open the terminal on the build folder and run this command:

atos -arch armv6 -o myapp.app/myapp 0x000033ba

atos -arch armv6 -o myapp.app/myapp 0x000033ba

,它会返回文件和行。这是有用的。

and it will return the file and line where it was. It's somehow useful.

更多推荐

当设备未连接到Xcode时崩溃应用程序

本文发布于:2023-11-23 14:13:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621728.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接到   应用程序   设备   Xcode

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!