Firebase pod安装 - pod“Firebase /数据库” - 要求更高的最低部署目标 [英] Firebase pod install - pod 'Firebase/Database' - Required a higher minimum deployment target
问题描述
我尝试安装Firebase /数据库,例如Firebase文档 https://firebase.google .com / docs / ios / setup#available_pods ,但是当我尝试时,我得到了问题。
[!以满足以下要求:
-
Firebase / Database
Podfile
$ b符合< c $ c> Firebase / Database 依赖项,但是他们需要更高的最低部署目标。
b
需要更高的最低部署目标,我该怎么做?
谢谢
截图 <解决方案
第1步
安装常规Firebase - pod'Firebase', '> = 2.5.1'
第二步
更新 - code> pod更新
*此时需要几分钟才能更新。
更新所有窗格
更新本地规格库
分析依赖关系
下载依赖项
安装Firebase 3.2.0(是3.2.0)
使用FirebaseAnalytics(3.2.0)
安装FirebaseAuth(3.0.2)
使用FirebaseDatabase(3.0。 1)
使用FirebaseInstanceID(1.0.6)
使用GoogleInterchangeUtilities(1.2.1)
安装GoogleNetworkingUtilities(1.2.1)
使用GoogleSymbolUtilities(1.1.1)
使用GoogleUtilities(1.3.1)
生成Pods项目
集成客户端项目
发送统计信息
Pod安装完成! Podfile有4个依赖关系,安装了10个
的总数。
第3步
现在您应该拥有Firebase 3.所以你可以在你的pod文件中添加这样的框架然后 pod update
#取消注释此行为您的项目定义一个全局平台
platform:ios,'8.0'
#如果您使用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'
祝您好运! / p>
I am trying to install Firebase/Database like Firebase doc https://firebase.google.com/docs/ios/setup#available_pods but when I tried I got issue.
[!] Unable to satisfy the following requirements:
Firebase/Database
required byPodfile
Specs satisfying the
Firebase/Database
dependency were found, but they required a higher minimum deployment target.
Required a higher minimum deployment target, how can I do this?
Thanks
This is how I fixed it.
Step 1
Install Regular Firebase - pod 'Firebase', '>= 2.5.1'
Step 2
Update - pod update
*At this point it will take a good couple minutes to update. You should see something like this.
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.
Step 3
Now you should have Firebase 3. So you can add frameworks like such in your pod file then 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’
Good luck!
这篇关于Firebase pod安装 - pod“Firebase /数据库” - 要求更高的最低部署目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!