【问题标题】:React native Build error: Could not get GOOGLE_APP_ID in Google Services file from build environment反应原生构建错误:无法从构建环境中获取 Google 服务文件中的 GOOGLE_APP_ID
【发布时间】:2019-07-08 21:32:06
【问题描述】:

我已将 react-native-firebase 更新到 5.5.4 版,但之后我无法构建,出现以下错误:error: Could not get GOOGLE_APP_ID in Google Services file from build environment

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

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

【问题讨论】:

  • 你找到这个问题的答案了吗?

标签: ios react-native react-native-firebase


【解决方案1】:

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

可能会有帮助。

【讨论】:

    猜你喜欢
    • 2019-12-28
    • 2019-11-22
    • 2018-11-06
    • 1970-01-01
    • 2020-07-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多