问题描述
我的iPhone应用程序正常运行,每当我在设备或模拟器上运行该应用程序时,它突然崩溃,并且它没有在日志中向我报告任何有用的信息,它只记录了以下无用的信息.
My iPhone application was working properly and suddenly it crashes whenever i run it on the device or simulator and it doesn't report me with any useful info at the log it just logs the following useless info.:
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
)
请在您的答案中考虑以下内容:
please consider in your answer the following:
-
我正在为所有异常设置一个断点
I 'm putting a break point for all exceptions
我试图放置一个空的视图控制器并将其设置为the initial view controller
以便了解问题是否在情节提要中,但它也崩溃了
I tried to put an empty view controller and made it the initial view controller
in order to know if the problem is in the storyboard but it crashes also
我从iPhone设备上删除了该应用程序,并进行了清洁/构建,但没有任何意义
I removed the app from the iPhone device and made clean/build but with no mean
我删除了所有应用程序派生的数据并进行了清理/构建,但也没有任何意义
I removed all app derived data and made clean/build but also with no mean
配置文件正常
,以下是我在模拟器上尝试过的日志:
and the following is the log when i tried it on the simulator:
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
)
提前谢谢.
推荐答案
确保目标已为情节提要文件输入了正确的名称.通过转到目标的Info.plist文件,并重命名情节提要,使其与实际的情节提要文件名不匹配,可以重现您的错误.我的猜测是您不小心在目标中将其重命名,或者您在某个时候更改了情节提要的文件名.
Make sure that your target has the correct name entered for your storyboard file. I was able to reproduce your error by going to the Info.plist file for my target, and renaming the storyboard so it didn't match the actual storyboard filename. My guess is either you accidentally renamed that in your target or you changed the filename of your storyboard at some point.
这篇关于iPhone应用程序在didFinishLaunchingWithOptions之前崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!