【问题标题】:`Firebase/Auth` dependency were found, but they required a higher minimum deployment target找到了“Firebase/Auth”依赖项,但它们需要更高的最小部署目标
【发布时间】:2016-05-19 22:41:14
【问题描述】:

Google 刚刚更新了他们的 Firebase 核心产品,一些旧方法已被弃用。我打算集成的一个是:Firebase/Auth,但是,导入 podfile 并运行:pod install,会产生错误:

[!] Unable to satisfy the following requirements:

- `Firebase/Auth` required by `Podfile`

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

但是,在查看构建目标时,我将其设置为最新版本:

如何缓解此错误?

【问题讨论】:

  • 你得到答案了吗?我也被困在这个问题上。你能帮我解决这个问题吗?

标签: ios swift google-api firebase


【解决方案1】:

我遇到了同样的问题,我解决了更新我的 pod 文件的问题。

platform :ios, '9.0'

pod 'Firebase/Core'

target 'Unity-iPhone' do

target 'Unity-iPhone Tests' do
    inherit! :search_paths
    # Pods for testing
  end    
end

【讨论】:

    【解决方案2】:

    我有同样的问题,我解决了更新我的 pod 文件,并将所有需求 pod 放在文件的最后,如下所示:

    target 'UITests' do
      inherit! :search_paths
    
    end
    pod 'Firebase'
    pod 'Firebase/Core'
    pod 'Firebase/Auth'
    pod 'Firebase/Messaging'
    
    end
    #End of file
    

    并在终端中运行:

    pod update
    

    【讨论】:

      【解决方案3】:

      我做的比那家伙告诉我们的多或少 但我的步骤有点不同:

      1) 在终端上:
      转到您的项目文件夹:
      1.1) cd 桌面/YourApp
      1.2) YOURMAC:YourApp Fernanda$ sudo pod init

      2) 将您的 Podfile 文件更改为:

      取消注释此行以为您的项目定义一个全球平台 平台:ios,'8.0'

      以“YourApp”为目标
      # 如果你不使用 Swift 并且不想使用动态框架,请注释此行
      使用_frameworks!

      #YourApp 的 Pod
      pod 'Firebase'

      结束

      3) 在终端上:pod install

      4) 现在,再次将文件 Podfile 更改为:

      取消注释此行以为您的项目平台定义一个全局平台 :ios, '8.0'
      target 'YourApp' do
      # 如果您不使用 Swift 并且不想使用,请注释此行动态框架
      use_frameworks!
      #YourApp 的 Pod
      pod 'Firebase'
      pod 'Firebase/Auth'
      end

      5) 在终端上:pod update
      对不起,我的英语,
      好看!

      【讨论】:

        猜你喜欢
        • 2016-01-30
        • 1970-01-01
        • 2021-10-11
        • 1970-01-01
        • 2021-04-29
        • 2021-11-06
        • 2016-09-18
        • 1970-01-01
        • 2019-07-15
        相关资源
        最近更新 更多