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

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

问题描述

我想知道为什么我开发的应用程序在我的设备(运行iOS 6.1的iPhone 4)上运行时立即崩溃。我已经在这个应用程序大约8周,这个问题似乎已经出现了蓝色。



当我在模拟器上运行它时,应用程序运行良好。当我尝试在我的设备上运行它崩溃,并打破:

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

崩溃发生在AppDelegate方法之前

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

被调用。



我看过设备崩溃日志,任何给我一个线索的事情发生了什么。有没有人有一个想法,我可以开始寻找一个解决方案?对于什么值,这里是崩溃日志:


异常类型:EXC_CRASH(SIGABRT)异常代码:
0x0000000000000000,0x0000000000000000崩溃的线程: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 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



线程2名称:调度队列:com.apple.libdispatch-manager线程
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



线程4名称:WebThread线程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: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


我正在运行Xcode 4.6.1并启用ARC。

解决方案

我的设备。我重置了我的设备,崩溃消失了。在未来,我一定会记得尝试重置我的设备,当我遇到这种崩溃。


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]));
    }
}

The crash happens before the AppDelegate method

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

gets called.

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:

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

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

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

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

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

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

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

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天全站免登陆