应用程序在启动时立即崩溃,仅在设备上 [英] App crashing immediately on start up, on device only

查看:24
本文介绍了应用程序在启动时立即崩溃,仅在设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚为什么我正在开发的应用程序在我的设备(运行 iOS 6.1 的 iPhone 4)上运行时立即开始崩溃.我已经在这个应用程序上工作了大约 8 周,这个问题似乎突然出现了.

I'm trying to figure out why an app I'm developing has started crashing immediately when running it on my device (an iPhone 4 running iOS 6.1). I have been working on this app for about 8 weeks and this problem has arisen seemingly out of the blue.

当我在模拟器上运行该应用程序时,它运行良好.当我尝试在我的设备上运行它时,它会崩溃,并在以下位置中断:

The app runs fine when I run it on the simulator. When I try to run it on my device it crashes, and breaks at:

int main(int argc, char *argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}

崩溃发生在 AppDelegate 方法之前

The crash happens before the AppDelegate method

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

被调用.

我查看了设备崩溃日志,但没有看到任何可以让我了解正在发生的事情的线索.有谁知道我可以从哪里开始寻找解决方案?值得一提的是,这里是崩溃日志:

I have looked at the device crash log, and I don't see anything that gave me a clue as to what is happening. Does anyone have an idea of where I can start looking for a solution? For what it's worth, here is the crash log:

异常类型:EXC_CRASH (SIGABRT) 异常代码:0x0000000000000000, 0x0000000000000000 线程崩溃:0

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Crashed Thread: 0

线程 0 名称:调度队列:com.apple.main-thread 线程 0崩溃:0 libsystem_kernel.dylib 0x39e74350 __pthread_kill+ 8 1 libsystem_c.dylib 0x39deb11e pthread_kill + 54 2 libsystem_c.dylib 0x39e2796e 中止 + 90 3
图形服务 0x357da9ce GSRegisterPurpleNamedPort +210 4 图形服务 0x357da684 _GSEventInitialize +92 5 UIKit 0x33b2d0c8 UIApplicationMain +552 6 CK-Ranker 0x000bbaf4 主 (main.m:16) 7
CK-Ranker 0x000bba7c 开始 + 36

Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x39e74350 __pthread_kill + 8 1 libsystem_c.dylib 0x39deb11e pthread_kill + 54 2 libsystem_c.dylib 0x39e2796e abort + 90 3
GraphicsServices 0x357da9ce GSRegisterPurpleNamedPort + 210 4 GraphicsServices 0x357da684 _GSEventInitialize + 92 5 UIKit 0x33b2d0c8 UIApplicationMain + 552 6 CK-Ranker 0x000bbaf4 main (main.m:16) 7
CK-Ranker 0x000bba7c start + 36

线程 1:0 libsystem_kernel.dylib 0x39e74d98__workq_kernreturn + 8 1 libsystem_c.dylib 0x39dc2cf6 _pthread_workq_return + 14 2 libsystem_c.dylib 0x39dc2a12 _pthread_wqthread + 362 3 libsystem_c.dylib
0x39dc28a0 start_wqthread + 4

Thread 1: 0 libsystem_kernel.dylib 0x39e74d98 __workq_kernreturn + 8 1 libsystem_c.dylib 0x39dc2cf6 _pthread_workq_return + 14 2 libsystem_c.dylib 0x39dc2a12 _pthread_wqthread + 362 3 libsystem_c.dylib
0x39dc28a0 start_wqthread + 4

线程 2 名称:调度队列:com.apple.libdispatch-manager 线程2:0 libsystem_kernel.dylib 0x39e64648 kevent64 + 24 1
libdispatch.dylib 0x39d9d4ec _dispatch_mgr_invoke + 792 2libdispatch.dylib 0x39d8fdf4_dispatch_mgr_thread$VARIANT$up + 32

Thread 2 name: Dispatch queue: com.apple.libdispatch-manager Thread 2: 0 libsystem_kernel.dylib 0x39e64648 kevent64 + 24 1
libdispatch.dylib 0x39d9d4ec _dispatch_mgr_invoke + 792 2 libdispatch.dylib 0x39d8fdf4 _dispatch_mgr_thread$VARIANT$up + 32

线程 3:0 libsystem_kernel.dylib 0x39e74d98__workq_kernreturn + 8 1 libsystem_c.dylib 0x39dc2cf6 _pthread_workq_return + 14 2 libsystem_c.dylib 0x39dc2a12 _pthread_wqthread + 362 3 libsystem_c.dylib
0x39dc28a0 start_wqthread + 4

Thread 3: 0 libsystem_kernel.dylib 0x39e74d98 __workq_kernreturn + 8 1 libsystem_c.dylib 0x39dc2cf6 _pthread_workq_return + 14 2 libsystem_c.dylib 0x39dc2a12 _pthread_wqthread + 362 3 libsystem_c.dylib
0x39dc28a0 start_wqthread + 4

线程 4 名称:WebThread 线程 4:0 libsystem_kernel.dylib
0x39e63eb4 mach_msg_trap + 20 1 libsystem_kernel.dylib
0x39e64048 mach_msg + 36 2 核心基础
0x31ca6040 __CFRunLoopServiceMachPort + 124 3 核心基础
0x31ca4d9e __CFRunLoopRun + 878 4 核心基础
0x31c17eb8 CFRunLoopRunSpecific + 352 5 核心基础
0x31c17d44 CFRunLoopRunInMode + 100 6 WebCore
0x37c16500 RunWebThread(void*) + 440 7 libsystem_c.dylib
0x39dcd30e _pthread_start + 306 8 libsystem_c.dylib
0x39dcd1d4 thread_start + 4

Thread 4 name: WebThread Thread 4: 0 libsystem_kernel.dylib
0x39e63eb4 mach_msg_trap + 20 1 libsystem_kernel.dylib
0x39e64048 mach_msg + 36 2 CoreFoundation
0x31ca6040 __CFRunLoopServiceMachPort + 124 3 CoreFoundation
0x31ca4d9e __CFRunLoopRun + 878 4 CoreFoundation
0x31c17eb8 CFRunLoopRunSpecific + 352 5 CoreFoundation
0x31c17d44 CFRunLoopRunInMode + 100 6 WebCore
0x37c16500 RunWebThread(void*) + 440 7 libsystem_c.dylib
0x39dcd30e _pthread_start + 306 8 libsystem_c.dylib
0x39dcd1d4 thread_start + 4

线程 0 因 ARM 线程状态(32 位)而崩溃:r0:0x00000000 r1:0x00000000 r2:0x00000000 r3:0x3b92d534r4:0x00000006 r5:0x3b92db88 r6:0x3b933ff4 r7:0x2fd46c48r8:0x1ed7a570 r9:0x001844f0 r10:0x00000000 r11:0x00000000ip: 0x00000148 sp: 0x2fd46c3c lr: 0x39deb123 pc: 0x39e74350 cpsr: 0x00000010

Thread 0 crashed with ARM Thread State (32-bit): r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3b92d534 r4: 0x00000006 r5: 0x3b92db88 r6: 0x3b933ff4 r7: 0x2fd46c48 r8: 0x1ed7a570 r9: 0x001844f0 r10: 0x00000000 r11: 0x00000000 ip: 0x00000148 sp: 0x2fd46c3c lr: 0x39deb123 pc: 0x39e74350 cpsr: 0x00000010

我正在运行启用了 ARC 的 Xcode 4.6.1.

I am running Xcode 4.6.1 with ARC enabled.

推荐答案

事实证明我的设备有问题.我重置了我的设备,崩溃消失了.以后我一定会记得在遇到此崩溃时尝试重置我的设备.

As it turns out there was a problem with my device. I reset my device and the crash disappeared. In future I'll be sure to remember to try resetting my device when I run into this crash.

这篇关于应用程序在启动时立即崩溃,仅在设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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