首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Firebase pod安装- pod 'Firebase/Database‘-需要更高的最低部署目标

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

Stack Overflow用户
提问于 2016-05-22 00:07:27
回答 8查看 27.6K关注 0票数 24

我正在尝试安装Firebase /数据库,就像Firebase文档https://firebase.google.com/docs/ios/setup#available_pods一样,但当我尝试时,我得到了问题。

[!] Unable to satisfy the following requirements:

Podfile要求的

  • Firebase/Database

已找到满足Firebase/Database target.依赖项的规范,但它们需要更高的最低部署target.

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

谢谢

Screenshot

EN

回答 8

Stack Overflow用户

回答已采纳

发布于 2016-05-22 00:56:35

这就是我修复它的方法。

第一步

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

第二步

更新- 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.

第三步

现在你应该有了FireBase3,所以你可以像这样在你的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’

祝好运!

票数 28
EN

Stack Overflow用户

发布于 2016-05-22 01:02:08

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

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

从迁移指南中:

参考:Firebase.google migration guide

票数 5
EN

Stack Overflow用户

发布于 2019-09-23 20:04:18

我通过先运行pod repo update,然后再运行pod install来使其正常工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37365227

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档