3

我正在尝试将 Geofire 添加到使用 Google Firebase 作为后端的 iOS 项目中。当我添加 Geofire pod 并运行时,pod update我在终端中收到此消息...

[!] Unable to satisfy the following requirements:

- `Firebase` required by `Podfile`
- `Firebase (~> 2.1)` required by `GeoFire (1.1.0)`

Specs satisfying the `Firebase, Firebase (~> 2.1)` dependency were found, but they required a higher minimum deployment target.

这是我的 Podfile 的样子......

# 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 'HopUp' do
pod 'Firebase'
pod 'FirebaseAuth'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'GeoFire', '>= 1.1'
end

关于为什么会发生这种情况的任何想法?

感谢所有输入!

4

2 回答 2

6

解决方案之一是将 git 源添加到您的 pod 文件中,如下所示:

pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'

另外,如果您还有其他问题,请查看此 github问题。这就是我让 GeoFire 与我的项目一起工作的方式。

于 2016-06-27T13:39:41.253 回答
1

在他们更新 Firebase Geofire 停止工作后,新版本的 Geofire 即将推出,但不知道具体时间。

您可以尝试安装早期版本的 Firebase,但您迟早必须在更新到新版本后重写大量代码。

于 2016-06-08T20:18:58.287 回答