'`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.'
我已经尝试将新的 GoogleService-Info.plist 替换为我的项目,但它仍然存在相同的问题。
Make sure your plist file is:
- 从您的 Firebase 项目下载
- 添加到复制捆绑资源(选择目标 -> 构建阶段 -> 复制捆绑资源)
Or try to add that file from Menu as below
I see the log states that No app has been configured yet.
让我们尝试在您的开头添加这些代码行AppDelegate
if FirebaseApp.app() == nil {
let path = Bundle.main.path(forResource: "GoogleService-Info", ofType: "plist")
let firbaseOptions = FirebaseOptions(contentsOfFile: path!)
FirebaseApp.configure(options: firbaseOptions!)
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)