FIrebase iOS集成崩溃 – 由无效的GOOGLE_APP_ID引起

前端之家收集整理的这篇文章主要介绍了FIrebase iOS集成崩溃 – 由无效的GOOGLE_APP_ID引起前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用 Xcode构建集成Firebase来构建我的Cordova应用程序,但是我得到了这个模糊的错误,我无法理解什么是错的.我已将GoogleService-Info.plist文件放在项目目录中,但仍无法构建.这是堆栈跟踪
2017-05-17 09:56:43.610 MyAppz[824:13611] *** Terminating app due to uncaught exception 'com.firebase.core',reason: 'Configuration fails. It may be caused by an invalid GOOGLE_APP_ID in GoogleService-Info.plist 
or set in the customized options.'
    *** First throw call stack:
    (
        0   CoreFoundation                      0x00000001099cdb0b __exceptionPreprocess + 171
        1   libobjc.A.dylib                     0x0000000109409141 objc_exception_throw + 48
        2   CoreFoundation                      0x0000000109a36625 +[NSException raise:format:] + 197
        3   MyAppz                            0x0000000107280b70 +[FIRApp addAppToAppDictionary:] + 371
        4   MyAppz                            0x000000010728011b +[FIRApp configureDefaultAppWithOptions:sendingNotifications:] + 285
        5   MyAppz                            0x000000010727fe4f +[FIRApp configure] + 302
        6   MyAppz                            0x000000010721c59a -[AppDelegate(FirebasePlugin) application:swizzledDidFinishLaunchingWithOptions:] + 122
        7   UIKit                               0x000000010a804957 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 299
        8   UIKit                               0x000000010a80623c -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4119
        9   UIKit                               0x000000010a80c584 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1709
        10  UIKit                               0x000000010a809793 -[UIApplication workspaceDidEndTransaction:] + 182
        11  FrontBoardServices                  0x000000010fce15f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
        12  FrontBoardServices                  0x000000010fce146d -[FBSSerialQueue _performNext] + 186
        13  FrontBoardServices                  0x000000010fce17f6 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
        14  CoreFoundation                      0x0000000109973c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        15  CoreFoundation                      0x00000001099590cf __CFRunLoopDoSources0 + 527
        16  CoreFoundation                      0x00000001099585ff __CFRunLoopRun + 911
        17  CoreFoundation                      0x0000000109958016 CFRunLoopRunSpecific + 406
        18  UIKit                               0x000000010a80802f -[UIApplication _run] + 468
        19  UIKit                               0x000000010a80e0d4 UIApplicationMain + 159
        20  MyAppz                            0x0000000107195df1 main + 65
        21  libdyld.dylib                       0x000000010cc3a65d start + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException

可能是什么问题,我不知道还有什么需要展示,所以请问.

解决方法

出于某种原因,Xcode始终忽略位于项目根目录中的GoogleService-Info.plist,并且未将其复制到项目的Resources文件夹中.

我在那里手动复制文件,然后编译应用程序并运行得很好.

原文链接:https://www.f2er.com/iOS/330868.html

猜你在找的iOS相关文章