我似乎无法弄清楚线程1:信号SIGABRT错误。我的应用程序在启动屏幕停止,只显示标题。我已经检查了其他解决方案中是否有任何流氓网点,但似乎没问题。这是日志:
2016-06-14 12:50:22.760 Flight4[92201:6597548] Unknown class MainViewController in Interface Builder file.
2016-06-14 12:50:22.777 Flight4[92201:6597548] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7f91c0694330> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key tableView.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010ccb2c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010e81dbb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010ccb28a9 -[NSException raise] + 9
3 Foundation 0x000000010d0d0b53 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 CoreFoundation 0x000000010cbfad50 -[NSArray makeObjectsPerformSelector:] + 224
5 UIKit 0x000000010d8294eb -[UINib instantiateWithOwner:options:] + 1506
6 UIKit 0x000000010d6816d8 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
7 UIKit 0x000000010d681cc8 -[UIViewController loadView] + 109
8 UIKit 0x000000010d681f39 -[UIViewController loadViewIfRequired] + 75
9 UIKit 0x000000010d6823ce -[UIViewController view] + 27
10 UIKit 0x000000010d59d289 -[UIWindow addRootViewControllerViewIfPossible] + 58
11 UIKit 0x000000010d59d64f -[UIWindow _setHidden:forced:] + 247
12 UIKit 0x000000010d5a9de1 -[UIWindow makeKeyAndVisible] + 42
13 UIKit 0x000000010d54d417 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2732
14 UIKit 0x000000010d55019e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
15 UIKit 0x000000010d54f095 -[UIApplication workspaceDidEndTransaction:] + 179
16 FrontBoardServices 0x0000000112ef65e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
17 CoreFoundation 0x000000010cbe641c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
18 CoreFoundation 0x000000010cbdc165 __CFRunLoopDoBlocks + 341
19 CoreFoundation 0x000000010cbdbf25 __CFRunLoopRun + 2389
20 CoreFoundation 0x000000010cbdb366 CFRunLoopRunSpecific + 470
21 UIKit 0x000000010d54eb02 -[UIApplication _run] + 413
22 UIKit 0x000000010d5518c0 UIApplicationMain + 1282
23 Flight4 0x000000010ca2bc87 main + 135
24 libdyld.dylib 0x000000010f51d145 start + 1
25 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
第一行说出&#34; Interface Builder文件中的未知类MainViewController。&#34;但是该类链接到主故事板上的视图控制器,并且不包含任何错误。错误可能与此文件有关吗?如果是这样,我不确定如何继续进行。谢谢!
答案 0 :(得分:0)
所以我找到了解决这个问题的方法。我去了MainViewController的Identity Inspector,在Custom Class下,我设置了以前未定义的Module(见图)。THIS
但是,现在我遇到了一个新错误:
*** Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES.'