简体   繁体   English

iOS应用在运行前崩溃

[英]iOS App Crashing Before Running

I was working on my app and it was running fine. 我正在开发我的应用程序,并且运行良好。 I made some small changes to the code (which I have since undone to test if they were to blame) and it's started crashing on running. 我对代码进行了一些小更改(此后我一直对其进行测试以测试是否应归咎于此),并且该代码在运行时开始崩溃。 It appears to be crashing before even running my code or loading view in the thread com.apple.main-thread 甚至在运行我的代码或在com.apple.main-thread加载视图之前,它似乎崩溃了

The debugger breaks here 调试器在这里中断

libsystem_kernel.dylib`__pthread_kill:
0x3619a324:  mov    r12, #328
0x3619a328:  svc    #128
0x3619a32c:  blo    0x3619a344               ; __pthread_kill + 32
0x3619a330:  ldr    r12, [pc, #4]
0x3619a334:  ldr    r12, [pc, r12]
0x3619a338:  b      0x3619a340               ; __pthread_kill + 28
0x3619a33c:  stceq  p12, c9, [lr, #896]
0x3619a340:  bx     r12                      
0x3619a344:  bx     lr  

At the line 在生产线上

0x3619a32c:  blo    0x3619a344               ; __pthread_kill + 32

I thought it might be something in the code I changed I missed so I pulled a version from a month ago backed up off-site which is the IDENTICAL code that is in use for the current version on App Store but it crashes at the same place. 我以为可能是我错过的更改代码中的某件事,所以我从一个月前撤出一个版本进行异地备份,这是用于App Store当前版本的IDENTICAL代码,但它在同一位置崩溃。

It must be something to do with the iPhone itself as both versions of the code run fine in iPhone Simulator. 这必须与iPhone本身有关,因为这两个版本的代码都可以在iPhone Simulator中正常运行。

Have you tried rebooting your iPhone? 您是否尝试过重启iPhone? I find that sometimes you need to do that when when you get weird crashes. 我发现有时当您遇到奇怪的崩溃时需要这样做。 Not much of a real answer, but you didn't mention that you rebooted the device or not. 没有一个真正的答案,但是您没有提到是否重启了设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM