找不到有效的GoogleService-lnfo.plist

问题描述 投票:-1回答:3

enter image description here

'`[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替换到我的项目中,但是仍然存在相同的问题。

ios swift firebase firebase-authentication
3个回答
0
投票

您需要从Firebase控制台下载GoogleService-Info.plist文件。

为此,将控制台回家。单击左侧导航栏中settings icon旁边的Project Overview。然后向下滚动并找到此对话框:enter image description here

从那里,下载并添加到xcode中的根目录中,该错误应消失。


0
投票

[enter image description here请确保您的plist文件为:

  • 从您的Firebase项目下载
  • 已添加到副本捆绑资源(选择目标->构建阶段->复制捆绑资源)

或尝试如下从菜单中添加该文件enter image description here


0
投票
  1. 从Xcode的文件分隔符中删除Google Services文件
  2. 从构建阶段删除其引用名称
  3. 再次拖放Google服务信息列表,将弹出一个标记选中按钮和单选按钮,如下图所示enter image description here
© www.soinside.com 2019 - 2024. All rights reserved.