【问题标题】:Cloud FireStore minimum deployment targetCloud FireStore 最低部署目标
【发布时间】:2018-03-17 12:01:51
【问题描述】:

尝试使用 Cloud FireStore 启用应用时出现以下错误:

[!] Unable to satisfy the following requirements:

- `Firebase/Firestore` required by `Podfile`

Specs satisfying the `Firebase/Firestore` dependency were found, but they required a higher minimum deployment target.

我将 podfile 要求更改为 10.2,并将我的 xcode 部署更改为 10.2,但我仍然收到此错误。有什么建议吗?

编辑:

我的解决方案:我做了

pod repo update
pod install
pod update

按照这个顺序,它工作了。

【问题讨论】:

  • 你在更改 Podfile 后运行pod update 了吗?
  • 差不多了。我正在添加一个现有项目,所以我执行了 pod repo update pod、pod install 然后 pod update 它的顺序并且它起作用了。

标签: firebase google-cloud-firestore


【解决方案1】:

Firestore 应适用于 iOS 7 及更高版本。更多详情here.

使用它的最简单的 Podfile 如下所示:

platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
  pod 'Firebase/Core'
  pod 'Firebase/Firestore'
end

您应用的 Xcode 部署目标不应对 pod install 产生任何影响。

getting started video 展示了这一切。

【讨论】:

  • 是的,我完全意识到,我已经让 firebase 实时运行在其他 firebase 工具上。我之前也有过 podfile 错误,但不是这个。我想知道您是否对这个特定错误有任何见解,因为一般的 podfile 帮助不是我需要的。谢谢。
  • 没有分享你的实际 Podfile 我不确定我还能说什么。
  • 非常感谢您花时间提供帮助,我只是想问您是否有更量身定制的建议。但无论哪种方式,感谢您抽出宝贵的时间!
  • 这对于stackoverflow来说太闲聊了。你能在 firebase-talk 上问这个问题,我们会在那里调试它吗? groups.google.com/forum/#!forum/firebase-talk
【解决方案2】:

我正在添加到现有项目中,所以我这样做了

pod repo update
pod install
pod update 

按照这个顺序,它起作用了。

我不确定为什么这个命令有效,我猜它会在 firebase 附加组件的某个地方清除/重置某些东西。

【讨论】:

  • 即使在 repo 更新后安装对我也不起作用,但更新然后安装工作:)
  • 很高兴听到它奏效了,希望如果我的订单对某些人不适用,您的订单也将如此。
  • 与@BenSullivan 相同。非常感谢!
  • 此命令无法修复 Firebase/Core,但它适用于其他所有问题
【解决方案3】:

我这样做是为了:

从你的 Podfile 中删除 pod 'Firebase/Firestore',然后:

pod repo update

pod update

然后我将pod 'Firebase/Firestore'添加到我的Podfile中,最后执行pod install

【讨论】:

    【解决方案4】:

    我也遇到了同样的问题。我尝试了pod repo updatepod installpod update,甚至更新了 cocoapods。

    原来我在podfile 中还有FirebaseDatabase pod。

    删除解决了问题。

    【讨论】:

      【解决方案5】:

      就是这样,

      pod repo update
      pod update
      

      【讨论】:

        【解决方案6】:

        当我尝试将 firebase/Functions 添加到我的 pod 文件时,我遇到了同样的问题(找到了满足 Firebase/Functions 依赖项的规范,但它们需要更高的最小部署目标。

        经过多次尝试,我解决了通过删除所有 pod 然后为我想要的每个 pod 行运行 pod install 的问题,一个接一个,而不是同时安装。 最后我发现 pod 'Firebase/Core' 是问题所在,我最后安装了它,现在一切都安装好了。

        现在这是我的 pod。

        def shared_pods
            use_frameworks!
            pod 'Firebase/Functions'
            pod 'Firebase/Core'
            pod 'Firebase/Firestore'
            pod 'Firebase/Storage'
            pod 'Firebase/Database'
            pod 'FirebaseUI/Storage'
            pod 'SDWebImage'
            pod 'Fabric'
            pod 'Crashlytics'
        end
        

        【讨论】:

          【解决方案7】:

          安装 FirebaseInAppMessaging (0.12.0)
          安装 FirebaseInAppMessagingDisplay (0.12.0)

          【讨论】:

            【解决方案8】:

            我在另一个库中遇到了同样的问题。 实际上最后的iOS版本是12。在应用程序上也设置了这个版本,错误仍然出现。

            我的解决方案是删除 podfile.lock 文件(我不知道为什么......)

            【讨论】:

              猜你喜欢
              • 1970-01-01
              • 1970-01-01
              • 2021-07-14
              • 2015-08-29
              • 2017-10-04
              • 1970-01-01
              • 2011-07-23
              • 1970-01-01
              • 2010-12-27
              相关资源
              最近更新 更多