Pickers[1645:44268] *** Terminating app due to uncaught exception “”NSInternalInconsistencyException””, reason: “”Could not load NIB in bundle: “”NSBundle </Users/huensiumui/Library/Developer/CoreSimulator/Devices/A54BD0EC-87E7-4607-818D-6FE075AADD28/data/Containers/Bundle/Application/813D9907-C4F1-4751-84B6-75650399935E/Pickers.app> (loaded)”” with name “”Main””””
*** First throw call stack:
(
0 CoreFoundation 0x02095746 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x0057fa97 objc_exception_throw + 44
2 CoreFoundation 0x0209566d +[NSException raise:format:] + 141
3 UIKit 0x00b07ddf -[UINib instantiateWithOwner:options:] + 1003
4 UIKit 0x00b09f82 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 180
5 UIKit 0x007bd61b -[UIApplication _loadMainNibFileNamed:bundle:] + 58
6 UIKit 0x007bd934 -[UIApplication _loadMainInterfaceFile] + 245
7 UIKit 0x007bc2a4 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1337
8 UIKit 0x007d58ee __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
9 UIKit 0x007baffa -[UIApplication workspaceDidEndTransaction:] + 155
10 FrontBoardServices 0x0324ac9e __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
11 FrontBoardServices 0x0324a72f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
12 FrontBoardServices 0x0325cd7c __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 30
13 CoreFoundation 0x01fb7050 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
14 CoreFoundation 0x01fac963 __CFRunLoopDoBlocks + 195
15 CoreFoundation 0x01fac0eb __CFRunLoopRun + 971
16 CoreFoundation 0x01faba5b CFRunLoopRunSpecific + 443
17 CoreFoundation 0x01fab88b CFRunLoopRunInMode + 123
18 UIKit 0x007ba9b2 -[UIApplication _run] + 571
19 UIKit 0x007be0b6 UIApplicationMain + 1526
20 Pickers 0x0009bd2a main + 138
21 libdyld.dylib 0x02c74ac9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
storyboard和xib文件不一样
你看他的提示,是说”Could not load NIB in bundle:”
nib和xib基本上可以理解为同一个东西