2016-06-07 50 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與我的項目合作的方式。