2014-02-05 46 views
2

我的iPhone应用程序工作正常,突然它时,我的设备或模拟器上运行,它崩溃,它不会与日志,它只是记录以下无用信息任何有用的信息告我:didFinishLaunchingWithOptions之前的iPhone应用程序崩溃

2014-02-05 17:09:34.069 TeacherAssistant[711:60b] (
0 CoreFoundation      0x2ed4ce9b <redacted> + 154 
1 libobjc.A.dylib      0x390a96c7 objc_exception_throw + 38 
2 UIKit        0x3197beed <redacted> + 0 
3 UIKit        0x3174a10d <redacted> + 44 
4 UIKit        0x3153ba53 <redacted> + 482 
5 UIKit        0x314d6a07 <redacted> + 3142 
6 UIKit        0x314d5cfd <redacted> + 72 
7 UIKit        0x3153b321 <redacted> + 664 
8 GraphicsServices     0x339bb76d <redacted> + 608 
9 GraphicsServices     0x339bb357 <redacted> + 34 
10 CoreFoundation      0x2ed17777 <redacted> + 34 
11 CoreFoundation      0x2ed17713 <redacted> + 346 
12 CoreFoundation      0x2ed15edf <redacted> + 1406 
13 CoreFoundation      0x2ec80471 CFRunLoopRunSpecific + 524 
14 CoreFoundation      0x2ec80253 CFRunLoopRunInMode + 106 
15 UIKit        0x3153a5c3 <redacted> + 762 
16 UIKit        0x31535845 UIApplicationMain + 1136 
17 TeacherAssistant     0x0006c545 main + 220 
18 libdyld.dylib      0x395a2ab7 <redacted> + 2 
) 

请在你的答案考虑以下几点:

  • 我是把一个破发点的所有异常

  • 我试图把一个空的视图控制器,为了知道问题出在故事板,但它也崩溃

  • 我删除从iPhone设备的应用程序和洁净/建造,但没有平均使它the initial view controller

  • 我删除了所有的应用程序获得的数据和洁净/建造,但也没有平均

  • 供应曲线是确定

和后续ing是我在模拟器上试过的日志:

2014-02-05 17:19:17.950 TeacherAssistant[17535:70b] (
0 CoreFoundation      0x017be5e4 __exceptionPreprocess + 180 
1 libobjc.A.dylib      0x015418b6 objc_exception_throw + 44 
2 UIKit        0x007e3572 -[UIStoryboard name] + 0 
3 UIKit        0x002af432 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 53 
4 UIKit        0x002af6e9 -[UIApplication _loadMainInterfaceFile] + 245 
5 UIKit        0x002ae28f -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 543 
6 UIKit        0x002c287c -[UIApplication handleEvent:withNewEvent:] + 3447 
7 UIKit        0x002c2de9 -[UIApplication sendEvent:] + 85 
8 UIKit        0x002b0025 _UIApplicationHandleEvent + 736 
9 GraphicsServices     0x020f52f6 _PurpleEventCallback + 776 
10 GraphicsServices     0x020f4e01 PurpleEventCallback + 46 
11 CoreFoundation      0x01739d65 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53 
12 CoreFoundation      0x01739a9b __CFRunLoopDoSource1 + 523 
13 CoreFoundation      0x0176477c __CFRunLoopRun + 2156 
14 CoreFoundation      0x01763ac3 CFRunLoopRunSpecific + 467 
15 CoreFoundation      0x017638db CFRunLoopRunInMode + 123 
16 UIKit        0x002adadd -[UIApplication _run] + 840 
17 UIKit        0x002afd3b UIApplicationMain + 1225 
18 TeacherAssistant     0x0000a67d main + 157 
19 libdyld.dylib      0x02b5e70d start + 1 
) 

在此先感谢。

+0

'[UIStoryboard名]'这是不可用UIKit中,你在你的代码或者设计一些点发送'name'消息到你的故事板。请确认。 –

+0

你是什么意思我不理解! –

+0

不正确。 '[UIStoryboard name]'是一种有效的方法。它只是不公开,但它是可用的。这不是问题。问题很可能在故事板内。应该有一个消息附加到这个例外。例如。 “这个类不是键值符合键...” –

回答

3

确保你的目标对你的故事板文件中输入正确的名称。我可以通过转到我的目标的Info.plist文件来重现您的错误,并重新命名故事板,使其与实际故事板文件名不匹配。我的猜测是你不小心重新命名了你的目标,或者你在某个时候改变了故事板的文件名。

+0

不,问题是故事板没有添加到束路径部分 –

0

如果应用程序使用嵌入式二进制这种情况可能发生,但是你有没有在目标>常规>嵌入式二进制文件添加他们。