Reputation: 1176
I am trying to fix the versions of my firebase subspec pods in order to keep the Podfile.lock to be constant throughout the team, but there is some error being popped up while installing the pods using pod install
. I have checked the latest versions of all the subspecs using pod outdated
command, and then put the desired versions in front of the subspecs.
I have tried running pod repo update
, but even that didn't work
Podfile
pod 'Firebase','6.23.0'
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'
pod 'Firebase/DynamicLinks'
pod 'FirebaseRemoteConfig','4.4.9'
Error Log while running pod install
[!] CocoaPods could not find compatible versions for pod
"FirebaseAnalytics":
In snapshot (Podfile.lock):
FirebaseAnalytics (= 6.3.0, ~> 6.0)
In Podfile:
Firebase/Analytics was resolved to 6.23.0, which depends on
Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
FirebaseAnalytics (= 6.4.2)
Specs satisfying the `FirebaseAnalytics (= 6.3.0, ~> 6.0),
FirebaseAnalytics (= 6.4.2)` dependency were found, but they required
a higher minimum deployment target.
When i run pod outdated
, I get the following versions of all the subspecs, so accordingly I gave the versions in the Podfile.
- Firebase 6.18.0 -> 6.23.0 (latest version 6.23.0)
- FirebaseABTesting 3.1.2 -> 3.2.0 (latest version 3.2.0)
- FirebaseAnalytics 6.3.0 -> 6.4.2 (latest version 6.4.2)
- FirebaseCore 6.6.3 -> 6.6.7 (latest version 6.6.7)
- FirebaseCoreDiagnostics 1.2.1 -> 1.2.4 (latest version 1.2.4)
- FirebaseDynamicLinks 4.0.7 -> 4.0.8 (latest version 4.0.8)
- FirebaseInstallations 1.1.0 -> 1.2.0 (latest version 1.2.0)
- FirebaseInstanceID 4.3.2 -> 4.3.4 (latest version 4.3.4)
- FirebaseMessaging 4.3.0 -> 4.3.1 (latest version 4.3.1)
- FirebaseRemoteConfig 4.4.8 -> 4.4.9 (latest version 4.4.9)
Upvotes: 0
Views: 2308
Reputation: 773
I installed the pod as below,
pod 'Firebase','6.23.0'
pod 'Firebase/Analytics','6.23.0'
pod 'Firebase/Messaging','6.23.0'
pod 'Firebase/DynamicLinks','6.23.0'
pod 'FirebaseRemoteConfig','4.4.9'
This worked fine without any issues.
Upvotes: 1
Reputation: 17844
I think you're confusing pods and sub-specs.
Firebase is at version 6.23.0 (see its podspec). This Pod has a sub-spec called "Firebase/RemoteConfig" which pulls in another Pod called FirebaseRemoteConfig
, which in turn has version 4.4.9
So, your specification of pod 'Firebase/RemoteConfig','4.4.9'
makes no sense, because the sub-spec of a pod does not have its own individual version number. This is what
None of your spec sources contain a spec satisfying the dependency:
Firebase/RemoteConfig (= 4.4.9)
.
is trying to tell you.
Use pod 'FirebaseRemoteConfig','4.4.9'
instead.
Upvotes: 2