2017-05-17 7 views
3

Xcodeビルドを使用してFirebaseを統合してCordovaアプリケーションをビルドしようとしていますが、この曖昧なエラーが発生しています。 GoogleService-Info.plistファイルをプロジェクトディレクトリに配置しましたが、ビルドに失敗しました。ここでは、スタックトレースがFIrebase iOS統合クラッシュ - 無効なGOOGLE_APP_IDによって発生しました

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 

で問題になる可能性がどのような、私はそれが必要なのかどうかを示すために他に何かわからないので、お問い合わせください。

答えて

7

Xcodeのは、常にプロジェクトのルートディレクトリにあるGoogleService-Info.plistを無視し、かつのリソースフォルダにコピーされていなかったいくつかの理由プロジェクト。

私は手動でそこにファイルをコピーし、その後、アプリケーションがコンパイルされ、正常に実行されました。

+0

ありがとうございました!この1時間のために時間を探していた... – Maxime2400

+0

色相色華...完了:D – ErasmoOliveira

1

GoogleService-Info.plistファイルが破損している可能性があります。 再ダウンロードして交換してください。

ここで、元の議論 - Firebase for Cordova

・ホープ、このことができます...

+0

FIREbaseのコンソールページからまっすぐだったので、破損や変更はできません –

+0

firebaseコンソールからGoogleService-Info.plistを再ダウンロードし、プロジェクトGoogleService-Info.plistを置き換えてもう一度試してください – digiwizkid

+0

同じエラー –

1

私の場合、問題はコードバでGoogleService-Info.plistをコピーして破損していました。

解決方法は手動で行う必要があります。 GoogleService-Info.plistをルートフォルダからコピーして platforms/ios/project-name/Resourcesに貼り付けて貼り付けます。そこに別のResourcesフォルダも貼り付けられます。 platforms/ios/project-name/Resources/Resources

次に、ビルドを行ったり、シミュレータで実行してみると、うまくいきます。

関連する問題