2016-06-07 53 views
3

我想将Geofire添加到使用Google Firebase作为后端的iOS项目中。当我加入Geofire吊舱和运行pod update我得到了终端这条消息...GeoFire给CocoaPods带来问题

[!] 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 

任何想法,为什么这是发生了什么?

所有的输入赞赏!

+0

您是否尝试过使用un-commenting您的平台线? –

+0

@MikeD我有,它给了我同样的错误。我很欣赏这个建议! – justColbs

回答

1

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

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

6

解决的办法之一是对git的源添加到您的POD文件像这样:

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

此外,检查出this github issue如果您有任何更多的问题。这就是我获得GeoFire与我的项目合作的方式。