Firebase pod安装 – pod“Firebase /数据库” – 要求更高的最低部署目标

我试图安装Firebase文档https://firebase.google.com/docs/ios/setup#available_pods,但是当我尝试我得到问题。

[!] Unable to satisfy the following requirements: 
  • Podfile所需的Firebase/Database

    发现满足Firebase/Database依赖关系的规范,但是他们需要更高的最低部署目标。

要求更高的最低部署目标 ,我该怎么做?

谢谢

截图

这是我如何解决它。

步骤1

安装常规Firebase – pod 'Firebase', '>= 2.5.1'

第2步

更新 – pod update

*此时需要几分钟时间进行更新。 你应该看到这样的东西。

 Update all pods Updating local specs repositories Analyzing dependencies Downloading dependencies Installing Firebase 3.2.0 (was 3.2.0) Using FirebaseAnalytics (3.2.0) Installing FirebaseAuth (3.0.2) Using FirebaseDatabase (3.0.1) Using FirebaseInstanceID (1.0.6) Using GoogleInterchangeUtilities (1.2.1) Installing GoogleNetworkingUtilities (1.2.1) Using GoogleSymbolUtilities (1.1.1) Using GoogleUtilities (1.3.1) Generating Pods project Integrating client project Sending stats Pod installation complete! There are 4 dependencies from the Podfile and 10 total pods installed. 

第3步

现在你应该有Firebase 3.所以你可以在你的pod文件中添加这样的框架然后pod update

 # Uncomment this line to define a global platform for your project platform :ios, '8.0' # Uncomment this line if you're using Swift use_frameworks! target 'xMarket' do end target 'xMarketTests' do end target 'xMarketUITests' do end pod 'Firebase', '>= 2.5.1' pod 'Firebase/Core' pod 'Firebase/Database' pod 'Firebase/Auth' 

祝你好运!

Podfile ,将行pod 'Firebase'更改为pod Firebase/Core ,然后在项目文件夹中运行pod update

使用新的Firebase,不需要第一行。

从迁移指南:

移民

参考: Firebase.google迁移指南

我有同样的问题,我的错误如下

 [!] Unable to satisfy the following requirements: - `Firebase/AdMob` required by `Podfile` Specs satisfying the `Firebase/AdMob` dependency were found, but they required a higher minimum deployment target. 

在这里输入图像说明 Targets->general->deployment target Changed to 8.0 在这里输入图像说明

我的项目部署目标从ios 6开始由于它在旧的xcode版本中开发。对于xcode 8新更新,我deployment target from ios 8做了deployment target from ios 8它从我这里工作。

修好后的工作

Installing Firebase (4.0.2) Installing FirebaseAnalytics (4.0.1) Installing FirebaseCore (4.0.2) Installing FirebaseInstanceID (2.0.0) Installing Google-Mobile-Ads-SDK (7.20.0) Installing GoogleToolboxForMac (2.1.1)

最新的Firebase将支持从ios 8。

按照下面的步骤:

  1. 荚回购删除主
  2. 荚设置
  3. 荚安装

或者您可以更新Podfile

平台:ios,“9.0”

运行“pod更新”

那个窝