Cordova ios-默认的Firebase应用尚未配置

问题描述 投票:0回答:1

我正在使用https://www.npmjs.com/package/cordova-plugin-firebase-authentication cordova插件将firebase登录集成到我的cordova ios应用程序中。所以我搜索了google,发现platfor / ios / app / Resources文件夹中缺少GoogleService-Info.plist。我已将文件下载到同一文件夹中,并且仍将文件复制到xcode中,但应用程序仍然抛出[Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure];(FirebaseApp.configure()in Swift) to your application initialization有人可以帮助我解决此问题吗?谢谢。

firebase cordova cordova-plugins
1个回答
0
投票

不应手动创建文件GoogleService-Info.plist。相反,您可以从Firebase控制台下载此文件,然后才能在该项目中创建一个项目和一个ios应用程序。不要忘记将文件与Cordova应用程序的根目录放置在一起]

© www.soinside.com 2019 - 2024. All rights reserved.