gpt4 book ai didi

ios - 应用程序在启动时崩溃

转载 作者:行者123 更新时间:2023-11-29 01:35:11 25 4
gpt4 key购买 nike

我的应用程序在启动时崩溃。它永远不会继续 app didfinish

2015-10-09 15:41:55.396 MÖLLER[11840:574331] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]' *** First throw call stack: ( 0 CoreFoundation 0x026cc746 __exceptionPreprocess + 182 1 libobjc.A.dylib
0x01f9ca97 objc_exception_throw + 44 2 CoreFoundation
0x025c2c93 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 451 3 CoreFoundation 0x025d6b7b +[NSDictionary dictionaryWithObjects:forKeys:count:] + 75 4 MOÃàLLER 0x0004d65b -[TabBarViewController viewDidLoad] + 3291 5 UIKit
0x00a97db7 -[UITabBarController initWithNibName:bundle:] + 221 6
MOÃàLLER 0x0008984d -[AppDelegate application:didFinishLaunchingWithOptions:] + 268 7 UIKit
0x008e5f87 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 287 8 UIKit 0x008e6d71 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2938 9 UIKit 0x008ea3d2 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1639 10 UIKit 0x009038ee _84-[UIApplication handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59 11 UIKit 0x008e8ffa -[UIApplication workspaceDidEndTransaction:] + 155 12 FrontBoardServices 0x03208c9e __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71 13 FrontBoardServices
0x0320872f _40-[FBSWorkspace performDelegateCallOut:]_block_invoke + 54 14 FrontBoardServices 0x0321ad7c __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 30 15 CoreFoundation 0x025ee050 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 16 16 CoreFoundation
0x025e3963 __CFRunLoopDoBlocks + 195 17 CoreFoundation
0x025e37bb __CFRunLoopRun + 2715 18 CoreFoundation
0x025e2a5b CFRunLoopRunSpecific + 443 19 CoreFoundation
0x025e288b CFRunLoopRunInMode + 123 20 UIKit
0x008e89b2 -[UIApplication _run] + 571 21 UIKit
0x008ec0b6 UIApplicationMain + 1526 22 MOÃàLLER
0x0006a509 main + 94 23 libdyld.dylib
0x03fe1ac9 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

最佳答案

错误说

-[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: 尝试从 objects[0]' 中插入 nil 对象

该错误意味着您正试图将 nil 放入字典中(这是不允许的)。由于您正在使用字符串文字构建字典,因此它们不能是 nil

关于ios - 应用程序在启动时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33035628/

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