gpt4 book ai didi

ios - 线程 1 : signal SIGABRT (Tried prev solutions)

转载 作者:行者123 更新时间:2023-11-30 13:20:32 25 4
gpt4 key购买 nike

我似乎无法弄清楚这个线程 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)

第一行显示“Interface Builder 文件中存在未知类 MainViewController”。但该类链接到主 Storyboard上的 View Controller ,并且不包含任何错误。该错误可能与该文件有关吗?如果是这样,我不知道还能如何继续。谢谢!

最佳答案

所以我找到了解决这个问题的方法。我转到 MainViewController 的身份检查器,在自定义类下,我设置了之前未定义的模块(参见照片)。 enter image description here

但是,现在我有一个新错误:

*** Terminating app due to uncaught exception 
'NSInternalInconsistencyException', reason: 'Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES.'

关于我的手机。我附上了 View 层次结构的图片。 enter image description here

关于ios - 线程 1 : signal SIGABRT (Tried prev solutions),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37806255/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com