[英]cordova-firebase-plugin configuration for iOS
I am developing an app with Cordova. 我正在开发Cordova的应用程序。 On Android, the Firebase plugin works well, but I am facing this issue on iOS: 在Android上,Firebase插件运行良好,但我在iOS上遇到此问题:
<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.'
I placed GoogleService-Info.plist in the root folder of the project, in the same folder of the .xcodeproj
file. 我将GoogleService-Info.plist放在项目的根文件夹中,位于.xcodeproj
文件的同一文件夹中。
Probably too late for you, but in case somebody else gets here like me, this file should be placed in the root of your cordova project. 对你来说可能为时已晚,但如果有人像我这样来到这里,这个文件应放在你的cordova项目的根目录中。 the plugin has hooks to copy the file into your xcode project during the build. 该插件具有钩子,可在构建期间将文件复制到xcode项目中。
I resolved this issue by doing following step: 我通过以下步骤解决了这个问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.