Iphone 未连接Xcode的iOS启动时崩溃

Iphone 未连接Xcode的iOS启动时崩溃,iphone,objective-c,debugging,Iphone,Objective C,Debugging,我的iOS应用程序出现了一个奇怪的问题。当它通过Xcode(构建和运行)运行时,一切都很好。应用程序启动,一切正常 但是,如果我试图像用户那样(通过Springboard)点击应用程序图标打开应用程序,应用程序会立即崩溃,出现下面的崩溃日志。这似乎指向了某种图像相关的问题,但我不明白在使用Xcode调试时怎么不会发生这种情况 有人能解释一下吗 Date/Time: 2012-06-15 16:13:29.035 +0100 OS Version: iPhone OS 5.1

我的iOS应用程序出现了一个奇怪的问题。当它通过Xcode(构建和运行)运行时,一切都很好。应用程序启动,一切正常

但是,如果我试图像用户那样(通过Springboard)点击应用程序图标打开应用程序,应用程序会立即崩溃,出现下面的崩溃日志。这似乎指向了某种图像相关的问题,但我不明白在使用Xcode调试时怎么不会发生这种情况

有人能解释一下吗

Date/Time:       2012-06-15 16:13:29.035 +0100
OS Version:      iPhone OS 5.1.1 (9B206)
Report Version:  104

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   dyld                            0x2fe76464 strcmp + 0
1   dyld                            0x2fe6a6e2 ImageLoaderMachO::parseLoadCmds() + 54
2   dyld                            0x2fe72058 ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, unsigned int, unsigned int, linkedit_data_command const*, ImageLoader::LinkContext const&) + 296
3   dyld                            0x2fe6b23a ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, ImageLoader::LinkContext const&) + 302
4   dyld                            0x2fe622f6 _ZN4dyldL10loadPhase6EiRK4statPKcRKNS_11LoadContextE + 478
5   dyld                            0x2fe6255e _ZN4dyldL14loadPhase5statEPKcRKNS_11LoadContextEP4statPiPbPSt6vectorIS1_SaIS1_EE + 386
6   dyld                            0x2fe62716 _ZN4dyldL10loadPhase5EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 278
7   dyld                            0x2fe628fe _ZN4dyldL10loadPhase4EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 218
8   dyld                            0x2fe630dc _ZN4dyldL10loadPhase3EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 1144
9   dyld                            0x2fe63240 _ZN4dyldL10loadPhase1EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 108
10  dyld                            0x2fe63392 _ZN4dyldL10loadPhase0EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 262
11  dyld                            0x2fe634c4 dyld::load(char const*, dyld::LoadContext const&) + 224
12  dyld                            0x2fe650f2 dlopen + 742
13  libdyld.dylib                   0x360d55a2 dlopen + 42
14  CoreFoundation                  0x37256092 _CFBundleDlfcnLoadBundle + 106
15  CoreFoundation                  0x37255f36 _CFBundleLoadExecutableAndReturnError + 370
16  Foundation                      0x32d7bf40 -[NSBundle loadAndReturnError:] + 904
17  SomeApp                         0x000bcb3a 0x5e000 + 387898
18  SomeApp                         0x000c56d0 0x5e000 + 423632
19  SomeApp                         0x000c539a 0x5e000 + 422810
20  SomeApp                         0x00062f86 0x5e000 + 20358
21  UIKit                           0x30438c84 -[UIViewController view] + 160
22  SomeApp                         0x000622a6 0x5e000 + 17062
23  SomeApp                         0x0005fcc4 0x5e000 + 7364
24  UIKit                           0x30437ca4 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1176
25  UIKit                           0x304317d6 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 402
26  UIKit                           0x303ffabc -[UIApplication handleEvent:withNewEvent:] + 1004
27  UIKit                           0x303ff560 -[UIApplication sendEvent:] + 48
28  UIKit                           0x303fef34 _UIApplicationHandleEvent + 5820
29  GraphicsServices                0x3741b224 PurpleEventCallback + 876
30  CoreFoundation                  0x3729f51c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
31  CoreFoundation                  0x3729f4be __CFRunLoopDoSource1 + 134
32  CoreFoundation                  0x3729e30c __CFRunLoopRun + 1364
33  CoreFoundation                  0x3722149e CFRunLoopRunSpecific + 294
34  CoreFoundation                  0x37221366 CFRunLoopRunInMode + 98
35  UIKit                           0x30430864 -[UIApplication _run] + 544
36  UIKit                           0x3042dcce UIApplicationMain + 1074
37  SomeApp                         0x0005fb00 0x5e000 + 6912
38  SomeApp                         0x0005fac0 0x5e000 + 6848

编辑:与苹果开发团队就此进行了讨论。问题是,我在我的应用程序中使用了一个自制的插件,但没有进行代码签名(尽管我告诉Xcode这样做)。但是,Xcode 4.3.3有一个bug会破坏捆绑包的代码签名,所以我们很快就会看到它的效果。

您的应用程序可能需要太长时间才能启动。当从Xcode启动时,它被给予无限的时间,但当从SpringBoard启动时,它并没有得到这种奢侈

请看以下内容以供参考:


编辑:哦,我是怎么来到这里的。。。这已经两周了。

从Xcode 4.5开始,这似乎仍然是一个问题。作为一种解决方法,您似乎可以强制构建对捆绑包进行签名

添加以下内容作为捆绑包的最终“运行脚本”构建阶段为我修复了它:


codesign-fs“iPhone开发者”${builded\u PRODUCTS\u DIR}/${FULL\u PRODUCT\u NAME}

使用Xcode或它的调试器有什么问题吗?除了从调试器中删除你的应用程序或重新启动Xcode之外,你什么都做不了。@nhatdh这是什么意思?你不能用NULL终止字符串,我也不能。@Ravin455这是一个假名问题。没有重新启动/删除会有帮助,在某些地方代码仍然是错误的。请尝试发布一些代码,如AppDelegate启动部分,以及初始willLoad和DidAspect方法,直到我们看到代码为止,我们只能总结可能的错误。Jun 15 22:14:33 unknown com.apple.launchd[1]:(UIKitApplication:de.writeitstudios.cookiestumbler[0x1ad])错误:launchd_core_logic.c:3732(25562):3 Jun 15 22:14:33 unknown com.apple.launchd[1]:(UIKitApplication:de.writeitstudios.cookiestumbler[0x1ad])假设作业已退出::10:无子进程Jun 15 22:14:33 unknown com.apple.launchd[1]添加引号,以防产品名称中有空格。协同设计-fs“iPhone开发者”${builded\u PRODUCTS\u DIR}”/“${FULL\u PRODUCT\u NAME}”