gpt4 book ai didi

ios - 由于 GTMSessionFetcher sharedApplication #AskFirebase,自 3.8.0 以来,Firebase 无法在 iOS 应用程序扩展中使用

转载 作者:可可西里 更新时间:2023-11-01 04:50:03 27 4
gpt4 key购买 nike

我在我的最新应用中使用了 Firebase。将 pod 升级到 3.10.0 后,无法构建应用程序的共享扩展。 Firebase pod 依赖于 GTMSessionFetcher,它使用 sharedApplication,这在应用程序扩展中不可用。

我在我的扩展中使用了以下 pod:

pod 'Firebase/Core', '~> 3.7.0'
pod 'Firebase/Crash', '~> 3.7.0'
pod 'Firebase/Auth', '~> 3.7.0'
pod 'Firebase/Database', '~> 3.7.0'

我回滚到 3.7.0 版。这是最后一个不依赖于 sharedApplication 的版本。

这会在即将发布的版本中得到修复吗?

最佳答案

这将在即将推出的 GTMSessionFetcher 和 Firebase 版本中得到修复。

与此同时,由于最近的 Firebase 版本将 GTMSessionFetcher 引用为源 pod,因此可以对在应用程序扩展中运行的代码进行 ifdef 或注释掉违规代码:

enter image description here

关于ios - 由于 GTMSessionFetcher sharedApplication #AskFirebase,自 3.8.0 以来,Firebase 无法在 iOS 应用程序扩展中使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40933794/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com