2016-12-13 4 views
3

私はCordovaでアプリを開発しています。 Androidでは、Firebaseプラグインがうまく動作しますが、私は、iOS上でこの問題に直面しています:iOS用cordova-firebase-pluginの設定

<Error> [Firebase/Core][I-COR000009] The GOOGLE_APP_ID either in the plist 
file 'GoogleService-Info.plist' or the one set in the customized options 
is invalid. If you are using the plist file, use the iOS version of bundle 
identifier to download the file, and do not manually edit the 
GOOGLE_APP_ID. You may change your app's bundle identifier to '(null)'. Or 
you can download a new configuration file that matches your bundle 
identifier from https://console.firebase.google.com/ and replace the 
current one. 

*** 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.' 

私は同じフォルダに、プロジェクトのルートフォルダにGoogleService-Info.plistファイルを配置.xcodeprojファイルの

答えて

2

おそらくあなたにとって遅すぎるかもしれませんが、他の人が私のようにここに来る場合は、このファイルをコードバプロジェクトのルートに配置する必要があります。プラグインにはビルド中にxcodeプロジェクトにファイルをコピーするためのフックがあります。

2

私は、次のステップを実行して、この問題を解決:

  1. プロジェクトのルートフォルダにGoogleService-Info.plistファイルを追加します。
  2. iosプラットフォーム用のビルドを作成します。
  3. プロジェクトを実行すると、デバイスにXcodeがスローされます。エラーが発生していないか確認してください。 新しいGoogleService-Info.plistファイルをダウンロードし、次の の場所に置き換えます。
  4. プラットフォーム/ IOS /プロジェクト名/リソース/リソース/
+0

BTY私はfirebaseコンソールから/ IOS //リソース/リソースがまだ取得中にエラー –

+1

ダウンロードをお試し新しいGoogleService-Info.plistファイルのプラットフォームにGoogleService-Info.plistファイルを持っています。 プラットフォーム/ ios/Resources/ProjectName/Resources/Resources フォルダーに.plistファイルもありますがそれらも置き換えてください。 – Manish

関連する問題