本文介绍了Xcode控制台说Firebase没有配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道为什么这是不工作我的Firebase配置。这是我的AppDelegate.swift文件的。这是我的控制台日志:
2017-05-29 17:52:53.141 Study M8 [31592]< Error> [Firebase / Core] [I-COR000003]尚未配置默认的Firebase应用。将[FIRApp configure]添加到您的应用程序初始化中。阅读更多信息:https://firebase.google.com/docs/ios/setup#initialize_firebase_in_your_app。
2017-05-29 17:52:53.184 Study M8 [31592:1051241] ***由于未捕获的异常'NSInternalInconsistencyException',原因:'必须配置默认的FIRApp实例,然后才能使用默认的FIRAuthinstance初始化。确保调用`[FIRApp configure];`的方法是`application:didFinishLaunchingWithOptions:`。'
***第一个抛出调用堆栈:
(
0 CoreFoundation 0x000000010a445b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000109eaa141 objc_exception_throw + 48
2 CoreFoundation 0x000000010a4ae625 + [NSException raise:format:] + 197
3 Study M8 0x0000000108550a84 + [FIRAuth auth] + 88
4分配研究M8 0x00000001084e7a77 _TFC8Study_M810MessagesVCcfT5coderCSo7NSCoder_GSqS0__ + 279
5分配研究M8 0x00000001084e7bcd _TToFC8Study_M810MessagesVCcfT5coderCSo7NSCoder_GSqS0__ + 45
6分配的UIKit 0x000000010ac70f54 - [UIClassSwapper的initWithCoder:] + 246
7分配的UIKit 0x000000010ae614af UINibDecoderDecodeObjectForV alue + 693
8 UIKit 0x000000010ae6164d UINibDecoderDecodeObjectForValue + 1107
9 UIKit 0x000000010ae611ef - [UINibDecoder decodeObjectForKey:] + 89
10 UIKit 0x000000010aa07267 - [UIViewController initWithCoder:] + 1421
11 UIKit 0x000000010aa5cee5 - [UITabBarController initWithCoder:] + 65
12 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
13 UIKit 0x000000010ae611ef - [UINibDecoder decodeObjectForKey:] + 89
14 UIKit 0x000000010ac70c20 - [UIRuntimeConnection initWithCoder:] + 178
15 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
16 UIKit 0x000000010ae6164d UINibDecoderDecodeObjectForValue + 1107
17 UIKit 0x000000010ae611ef - [UINibDecoder decodeObjectForKey:] + 89
18 UIKit 0x000000010ac6fe1d - [UINib instantiateWithOwner:options:] + 1262
19 UIKit 0x000000010b02882f - [UIStoryboard instantiateViewControllerWithIdentifier:] + 181
20 UIKit 0x000000010a8688d1 - [UIApplication _loadMainStoryboardFileNamed:bundle:] + 108
21 UIKit 0x000000010a868db3 - [UIApplication _loadMainInterfaceFile] + 260
22 UIKit 0x000000010a867456 - [UIApplication _runWithMainScene:transitionContext:completion:] + 1407
23 UIKit 0x000000010a864793 - [UIApplication workspaceDidEndTransaction:] + 182
24 FrontBoardServices 0x000000010d3205f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
25 FrontBoardServices 0x000000010d32046d - [FBSSerialQueue _performNext] + 186
26个FrontBoardServices 0x000000010d3207f6 - [FBSSerialQueue _performNextFromRunLoopSource] + 45
27的CoreFoundation 0x000000010a3ebc01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
28的CoreFoundation 0x000000010a3d10cf __CFRunLoopDoSources0 + 527
29的CoreFoundation 0x000000010a3d05ff __CFRunLoopRun + 911
30 CoreFoundation 0x000000010a3d0016 CFRunLoopRunSpecific + 406
31 UIKit 0x000000010a86302f - [UIApplication _run] + 468
32 UIKit 0x000000010a8690d4 UIApplicationMain + 159
33 Study M8 0x00000001084e8997 main + 55
34 libdyld.dylib 0x000000010ca5665d start + 1
)
libc ++ abi.dylib:以未捕获异常类型NSException
(lldb)
如果有人知道该怎么做plz help 。
解决方案
plist文件出现问题,替换后一切正常。感谢所有帮助过我的人。
I don't know why this isn't working my Firebase is configured.Here is a Screenshot of my AppDelegate.swift file. Here is my console log:
2017-05-29 17:52:53.141 Study M8[31592] <Error> [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure] to your application initialization. Read more: https://firebase.google.com/docs/ios/setup#initialize_firebase_in_your_app.
2017-05-29 17:52:53.184 Study M8[31592:1051241] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The default FIRApp instance must be configured before the default FIRAuthinstance can be initialized. One way to ensure that is to call `[FIRApp configure];` is called in `application:didFinishLaunchingWithOptions:`.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010a445b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000109eaa141 objc_exception_throw + 48
2 CoreFoundation 0x000000010a4ae625 +[NSException raise:format:] + 197
3 Study M8 0x0000000108550a84 +[FIRAuth auth] + 88
4 Study M8 0x00000001084e7a77 _TFC8Study_M810MessagesVCcfT5coderCSo7NSCoder_GSqS0__ + 279
5 Study M8 0x00000001084e7bcd _TToFC8Study_M810MessagesVCcfT5coderCSo7NSCoder_GSqS0__ + 45
6 UIKit 0x000000010ac70f54 -[UIClassSwapper initWithCoder:] + 246
7 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
8 UIKit 0x000000010ae6164d UINibDecoderDecodeObjectForValue + 1107
9 UIKit 0x000000010ae611ef -[UINibDecoder decodeObjectForKey:] + 89
10 UIKit 0x000000010aa07267 -[UIViewController initWithCoder:] + 1421
11 UIKit 0x000000010aa5cee5 -[UITabBarController initWithCoder:] + 65
12 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
13 UIKit 0x000000010ae611ef -[UINibDecoder decodeObjectForKey:] + 89
14 UIKit 0x000000010ac70c20 -[UIRuntimeConnection initWithCoder:] + 178
15 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
16 UIKit 0x000000010ae6164d UINibDecoderDecodeObjectForValue + 1107
17 UIKit 0x000000010ae611ef -[UINibDecoder decodeObjectForKey:] + 89
18 UIKit 0x000000010ac6fe1d -[UINib instantiateWithOwner:options:] + 1262
19 UIKit 0x000000010b02882f -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
20 UIKit 0x000000010a8688d1 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 108
21 UIKit 0x000000010a868db3 -[UIApplication _loadMainInterfaceFile] + 260
22 UIKit 0x000000010a867456 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1407
23 UIKit 0x000000010a864793 -[UIApplication workspaceDidEndTransaction:] + 182
24 FrontBoardServices 0x000000010d3205f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
25 FrontBoardServices 0x000000010d32046d -[FBSSerialQueue _performNext] + 186
26 FrontBoardServices 0x000000010d3207f6 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
27 CoreFoundation 0x000000010a3ebc01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
28 CoreFoundation 0x000000010a3d10cf __CFRunLoopDoSources0 + 527
29 CoreFoundation 0x000000010a3d05ff __CFRunLoopRun + 911
30 CoreFoundation 0x000000010a3d0016 CFRunLoopRunSpecific + 406
31 UIKit 0x000000010a86302f -[UIApplication _run] + 468
32 UIKit 0x000000010a8690d4 UIApplicationMain + 159
33 Study M8 0x00000001084e8997 main + 55
34 libdyld.dylib 0x000000010ca5665d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
If anyone has any idea what to do plz help.
解决方案
There was a problem with the plist file, after replacing it everything worked fine. Thank you to everyone who helped.
这篇关于Xcode控制台说Firebase没有配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!