iOS react-native-firebase-升级到RN 0.60后无法获取GOOGLE_APP_ID?

时间:2019-08-11 14:47:39

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

在从本机0.59升级到0.60之前,一切都很好。

Xcode 10.3构建错误:

/bin/sh -c myApp.build/Script-6C5554832063F4750081EA9D.sh

error: Could not get GOOGLE_APP_ID in Google Services file from build environment

** ARCHIVE FAILED **

再次升级Firebase并进行本机反应之前,一切正常。

我有一个正常的/ios/GoogleService-Info.plist

在我的项目的“构建阶段”>“运行脚本”中


"${PODS_ROOT}/Fabric/run"

文件:package:json


"react": "^16.9.0",
"react-native": "^0.60.4",
"react-native-firebase": "^5.5.6",

文件:Podfile


  pod 'Firebase/Core', '~> 6.3.0'
  pod 'Firebase/Messaging', '~> 6.3.0'
  pod 'Fabric', '~> 1.10.2'
  pod 'Crashlytics', '~> 3.13.2'

在从本机0.59升级到0.60之前,一切都很好。

谁能建议我还能检查什么?

2 个答案:

答案 0 :(得分:0)

可能存在兼容性问题。您可能需要降级到0.59,然后检查是否可以解决问题。如果没有帮助,则说明升级到0.60时可能已更改了代码。

答案 1 :(得分:0)

react-native-firebase docs非常好。如果看来您做的一切正确,请检查以下内容:

已解决:

  1. 将运行脚本“ $ {PODS_ROOT} / Fabric / run” 移至xcode目标构建阶段的末尾。

enter image description here

相关问题