ios - react native 构建错误 : Could not get GOOGLE_APP_ID in Google Services file from build environment

标签 ios react-native react-native-firebase

我已经将 react-native-firebase 更新到版本 5.5.4 但之后我无法构建,出现以下错误:错误:无法从构建环境中获取 Google 服务文件中的 GOOGLE_APP_ID

我使用 cocoapods 来管理依赖项,我的 podfile 在链接中:https://gist.github.com/thiagoferolla/166f4ba8917bc2fd5d809d0b11c4d72e

GoogleService-Info.plist 位于正确的位置,它包含 GOOGLE_APP_ID 键值,所以我不知道为什么 xcode 会抛出此错误。有什么办法解决吗?

最佳答案

只需在 Pods/FirebaseCore/FIRApp.m 第 572 行中添加调试器 并打印 appID,它应该仅适用于特定平台。

可能会有帮助。

关于ios - react native 构建错误 : Could not get GOOGLE_APP_ID in Google Services file from build environment,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56942806/

相关文章:

Objective-C 与 C 速度

iOS 15 : Enabling "Configure in App" option for notifications

javascript - react native firebase getToken() 不工作

android - 使用应用程序的相关数据创建新闻源

iphone - 在 Interface Builder 中构建 UIView

react-native - 使用 Ionic、React Native、NativeScript 和 Flutter 捕获 "call end"事件?

javascript - Firebase 存储 : string does not match format base64: invalid character found. 仅当调试关闭时

java - react native : error: cannot find symbol after upgrade

android - Google Analytics 未与服务器通信 - AnalyticsReceiver 未注册或已禁用 - 错误

javascript - 我应该将 Firebase 代码添加到哪个 appDelegate 文件中?