gpt4 book ai didi

ios - * 由于未捕获的异常 'NSInternalInconsistencyException' 在 iOS 中终止应用程序

转载 作者:行者123 更新时间:2023-12-04 03:03:18 29 4
gpt4 key购买 nike

 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', 
reason: 'Could not load NIB in bundle:
'NSBundle </Users/xxxx/Library/Developer/CoreSimulator/Devices/726F2DC0-0653-4335- 93DD-40AFB9A00CB9/
data/Containers/Bundle/Application/3AD9B7CD-BB77-4676-B72D-D6504468A389/xxxx.app> (loaded)'
with name '1KQ-aR-y8O-view-UPI-Ak-bBq'
and directory 'Main.storyboardc''
*** First throw call stack:
(
0 CoreFoundation 0x000000010a90ee65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000109b12deb objc_exception_throw + 48
2 CoreFoundation 0x000000010a90ed9d +[NSException raise:format:] + 205
3 UIKit 0x0000000107dfa3cf -[UINib instantiateWithOwner:options:] + 499
4 UIKit 0x0000000107bd3eea -[UIViewController _loadViewFromNibNamed:bundle:] + 381
5 UIKit 0x0000000107bd4816 -[UIViewController loadView] + 178
6 UIKit 0x0000000107bd4b74 -[UIViewController loadViewIfRequired] + 138
7 UIKit 0x0000000107bdaf4f -[UIViewController __viewWillAppear:] + 120
8 UIKit 0x0000000107c0ae44 -[UINavigationController _startCustomTransition:] + 1203
9 UIKit 0x0000000107c1b23f -[UINavigationController _startDeferredTransitionIfNeeded:] + 712
10 UIKit 0x0000000107c1c3af -[UINavigationController __viewWillLayoutSubviews] + 57
11 UIKit 0x0000000107dc2ff7 -[UILayoutContainerView layoutSubviews] + 248
12 UIKit 0x0000000107af54a3 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 703
13 QuartzCore 0x000000010c24f59a -[CALayer layoutSublayers] + 146
14 QuartzCore 0x000000010c243e70 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
15 QuartzCore 0x000000010c243cee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
16 QuartzCore 0x000000010c238475 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
17 QuartzCore 0x000000010c265c0a _ZN2CA11Transaction6commitEv + 486
18 QuartzCore 0x000000010c26637c _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
19 CoreFoundation 0x000000010a83a367 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
20 CoreFoundation 0x000000010a83a2d7 __CFRunLoopDoObservers + 391
21 CoreFoundation 0x000000010a82ff2b __CFRunLoopRun + 1147
22 CoreFoundation 0x000000010a82f828 CFRunLoopRunSpecific + 488
23 GraphicsServices 0x000000010bd04ad2 GSEventRunModal + 161
24 UIKit 0x0000000107a3e610 UIApplicationMain + 171
25 baajna 0x000000010785e61f main + 111
26 libdyld.dylib 0x000000010e92e92d start + 1
27 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

我在堆栈溢出中没有得到预期的答案..它被其他人问到我尝试了他们所说的所有事情。但无法弄清楚我的问题。请大家帮我开箱即用。提前致谢

最佳答案

如果您从 Storyboard加载 View ,那么您应该使用 storyboardobject.instantiateViewControllerWithIdentifier("StoryboardIdentifier")。据我所知, Nib 只能在单独的 XIB 上工作

关于ios - * 由于未捕获的异常 'NSInternalInconsistencyException' 在 iOS 中终止应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39263262/

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