Firebase pod安装 - pod'Firebase/Database' - 需要更高的最低部署目标

Gio*_*ôco 23 ios cocoapods firebase firebase-realtime-database

我正在尝试安装Firebase /数据库,例如Firebase文档https://firebase.google.com/docs/ios/setup#available_pods,但是当我尝试时遇到问题.

[!] Unable to satisfy the following requirements:
Run Code Online (Sandbox Code Playgroud)
  • Firebase/Database 需要的 Podfile

    Firebase/Database找到了满足依赖性的规范,但它们需要更高的最低部署目标.

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

谢谢

截图

brk*_*rkr 26

这是我修复它的方式.

步骤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.
Run Code Online (Sandbox Code Playgroud)

第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’
Run Code Online (Sandbox Code Playgroud)

祝好运!

  • 首先安装Firebase pod'Firebase'然后执行"pod update"然后添加pod'Firebase/xxxxx' (2认同)

Ida*_*dan 5

在您的 中Podfile,将行更改pod 'Firebase'pod Firebase/Corepod update在项目文件夹中运行。

有了新的 Firebase,就不需要第一行了。

从迁移指南:

移民

参考: Firebase.google 迁移指南