ios - 无法安装 Firebase iOS SDK (v3.2.0)

标签 ios swift firebase cocoapods

<分区>

我无法安装 Firebase iOS SDK (v3.2.0)。 我按照 Firebase 的说明进行操作,但它会安装旧版 SDK v2.5.1

Podfile 看起来像

platform :ios, '9.0'

target 'FireBaseTestApp' do
use_frameworks!
pod 'Firebase', '>= 2.5.1'
pod 'Firebase/Core'

end

错误

[!] 无法满足以下要求:

  • Firebase/Core Podfile 需要

您的规范源都不包含满足依赖项的规范:Firebase/Core

你有: * 过时的源 repo ,您可以使用 pod repo update 进行更新。 * 输入错误的名称或版本。 * 未将托管 Podspec 的源代码库添加到您的 Podfile。

最佳答案

将您的 podfile 更改为

platform :ios, '9.0'
use_frameworks!

target 'FireBaseTestApp' do

pod 'Firebase'
pod 'Firebase/Database'

end

关于ios - 无法安装 Firebase iOS SDK (v3.2.0),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37642223/

相关文章:

iphone - 在 iOS 上裁剪视频

swift - 引用 [weak self] 作为自己? animateWithDuration 内部导致崩溃

ios - 上传后从 Vimeo iOS SDK 获取视频详细信息?

node.js - 从node.js中的firebase数据库中批量删除项目

firebase - 向Firestore添加字段?

java - 奥利奥通知翻倍?

ios - 使用 Storyboard在同一容器 View 中的多个 View

ios - ivar 中 AVAudioPlayer 的内存未被重用

ios - 在 iOS 8 上使用自定义 UI 动画显示和关闭共享扩展

swift - TableView 单元格内的按钮