出現(xiàn)問題:
用戶升級(jí)Firebase/Crashlytics ,根據(jù)Firebase官網(wǎng)提示會(huì)要求以cocopod的方式升級(jí)
Add the pod for Firebase Crashlytics
pod 'Firebase/Crashlytics'
Recommended: Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
cocopod出現(xiàn)如下錯(cuò)誤:
FF ~/Desktop/ii pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Crashlytics":
In Podfile:
Firebase/Crashlytics
None of your spec sources contain a spec satisfying the dependency: `Firebase/Crashlytics`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
出現(xiàn)原因:
是因?yàn)橹暗膒od庫(kù)是:Crashlytics亡脑,這個(gè)庫(kù)依賴的是:Firebase/Core缀皱,然后我遇到的這個(gè)問題是因?yàn)槲覍?duì)Firebase/Core ~> 6.3.0,指定了版本
解決方案
1烁落、繼續(xù)使用 Pod 'Firebase/core',刪除對(duì)版本的限制
2、替換掉Pod 'Firebase/core'庫(kù)的依賴誊锭,替換成Pod 'Firebase/CoreOnly'