将 firebase pods 更新到最新版本时收到 "framework not found MeasurementNanoPB" 错误

receiving "framework not found MeasurementNanoPB" error on updating firebase pods to latest version

之前使用的是 5.7.0,但存在一些与 firebase 存储相关的问题。为了找到解决方案,我在某处读到我需要用最新版本更新 firebase 即 5.12.0 或更高版本.

我正在更新新版本,但面临 "framework not found MeasurementNanoPB" 错误。搜索了很多关于相同但没有找到解决方案。

没有相关步骤,任何更新过firabse最新版本的人都可能收到同样的错误。

根据https://firebase.google.com/support/release-notes/ios 版本 5.14.0 - 2018 年 12 月 4 日,修复了此问题: FirebaseAnalytics CocoaPod 更正了它对 GoogleAppMeasurement CocoaPod 的依赖性 (#2151)。

您是否尝试更新到 Firebase 5.14.0?

否则,您是否尝试将 pod 'Firebase/Performance' 包含在您的播客文件中?

已解决!

尝试删除 Pod.lock 文件,从 Podfile 中删除所有与 firebase 相关的 pods。安装没有 Firebase 的 Pod。完成后,为 firebase 一一添加所有 pods。

"GRPCClient not found"仍然报错。在 Podfile 中添加以下框架。 pod gRPC-ProtoRPC.

然后出现错误 "measurement nanopb.framework" not found 所以只需按照以下步骤操作: 1)清洁项目 2)从各自的文件夹中删除派生数据 3) 现在在整个项目中搜索 "nanopb"(您将在 OtherLinkerFlags 下找到)并将其删除。 4) 现在再次安装 POD。

大功告成。现在项目将 运行 没有错误。