2017-09-01 212 views
0

我嘗試安裝最新版本的Firebase pod。我知道,這莢的最新版本是4.1.1 可可豆莢官方網站https://cocoapods.org/pods/Firebasefirebase pod安裝的版本低於最新版本

但是,當我打電話從iOS的終端莢更新命令,我看到這個吊艙安裝爲3.17.0。

這是我在iOS的終端看到後莢更新執行命令:

Downloading dependencies 
Using Alamofire (4.5.0) 
Using Bolts (1.8.4) 
Using Crashlytics (3.8.5) 
Using Digits (3.0.2) 
Using FBSDKCoreKit (4.26.0) 
Using FBSDKLoginKit (4.26.0) 
Using FBSDKMessengerShareKit (1.3.2) 
Using FBSDKShareKit (4.26.0) 
Using Fabric (1.6.12) 
Using Firebase (3.17.0) 
Using FirebaseAnalytics (3.9.0) 
Using FirebaseAuth (3.1.1) 
Using FirebaseCore (3.6.0) 
Using FirebaseCrash (1.1.6) 
Using FirebaseDatabase (3.1.2) 
Using FirebaseDynamicLinks (1.4.0) 
Using FirebaseInstanceID (1.0.10) 
Using FirebaseInvites (1.3.0) 
Using FirebaseMessaging (1.2.3) 
Using FirebaseStorage (1.1.0) 
Using FirebaseUI (4.1.1) 
Using GTMOAuth2 (1.1.4) 
Using GTMSessionFetcher (1.1.11) 
Using Google (3.1.0) 
Using GoogleAPIClientForREST (1.3.0) 
Using GoogleSignIn (4.0.2) 
Using GoogleToolboxForMac (2.1.1) 
Using IQKeyboardManagerSwift (4.0.13) 
Using MBProgressHUD (1.0.0) 
Using Protobuf (3.4.0) 
Using SwiftyStoreKit (0.10.7) 
Using TwitterCore (3.0.0) 
Using TwitterKit (3.1.0) 
Generating Pods project 
Integrating client project 
Sending stats 
Pod installation complete! There are 23 dependencies from the Podfile and 33 total pods installed. 

這是項目我Podfile內容:

use_frameworks! 

target 'PrayerDeck' do 
pod 'Firebase' 
pod 'Firebase/Auth' 
pod 'Firebase/Crash' 
pod 'FirebaseUI/Database' 
pod 'Fabric' 
pod 'Crashlytics' 
pod 'Digits' 
pod 'TwitterCore' 
pod 'Firebase/Database' 
pod 'Firebase/Core' 
pod 'Firebase/Messaging' 
pod 'IQKeyboardManagerSwift' 
pod 'Firebase/Storage' 
pod 'MBProgressHUD' 
pod 'Google/SignIn' 
pod 'Firebase/Invites' 
pod 'FBSDKCoreKit' 
pod 'FBSDKShareKit' 
pod 'FBSDKLoginKit' 
pod 'FBSDKMessengerShareKit' 
pod 'Alamofire', '~> 4.0' 
pod 'TwitterKit' 
pod 'SwiftyStoreKit' 
end 

target 'PrayerDeckTests' do 

end 

target 'PrayerDeckUITests' do 

end 

UPDATE:

當我嘗試更新Podfile,並設置更具體的版本,這樣莢「火力地堡」,「〜> 4.0」我在iOS終端下一個錯誤:

- `FirebaseAnalytics (= 4.0.3)` required by `Firebase/Core (4.1.1)` 
- `FirebaseAnalytics (~> 3.2)` required by `Google/Core (3.0.3)` 
- `GoogleSignIn (~> 3.0)` required by `Google/SignIn (2.0.4)` 
- `GoogleSignIn (~> 4.0)` required by `FirebaseInvites (2.0.1)` 
- `Firebase/Invites` required by `Podfile` 

回答

1

你Podfile正在使用過時的「谷歌/簽到」的力量Firebase 3.x依賴關係。

將其更改爲

pod 'GoogleSignIn' 
+0

謝謝!我已經完成了,但在pod更新執行後,我得到了下一個錯誤:[!]無法滿足以下要求: - Firebase/Core(4.0.4)所需的'FirebaseAnalytics(= 4.0.2)' - 'Google/Core(3.0.3)'所需的FirebaseAnalytics(〜> 3.2)'' - 'Podfile'所需的'GoogleSignIn' - Google/SignIn所需的GoogleSignIn(〜> 3.0) )' - 'FirebaseInvites(2.0.0)'所需''GoogleSignIn(〜> 4.0)'' - 'Podfile'需要'Firebase/Invites' 發現滿足Firebase/Invites依賴關係的規範,但它們需要更高的最低部署目標。 – IFrizy

+0

根據消息,它看起來像Google/SignIn仍然存在 –

+0

謝謝!這是我的錯誤。將pod'Google/SignIn'更改爲pod'GoogleSignIn'可以幫助我! :) – IFrizy

相關問題