invertase / react-native-firebase-starter

DEPRECATED: For RNFB v5 only.
https://rnfirebase.io/docs
Other
1.17k stars 335 forks source link

CocoaPods could not find compatible versions for pod "Crashlytics" #119

Closed BenjErgizerBunny closed 5 years ago

BenjErgizerBunny commented 5 years ago

I'm encountering the following error after cloning the project and doing npm install:

[!] The version of CocoaPods used to generate the lockfile (1.7.2) is higher than the version of the current executable (1.5.3). Incompatibility issues may arise.
[!] CocoaPods could not find compatible versions for pod "Crashlytics":
  In snapshot (Podfile.lock):
    Crashlytics (= 3.13.2, ~> 3.13.2)

  In Podfile:
    Crashlytics (~> 3.13.2)

None of your spec sources contain a spec satisfying the dependencies: `Crashlytics (~> 3.13.2), Crashlytics (= 3.13.2, ~> 3.13.2)`.

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.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

Steps taken to solve I deleted my Podfile.lock and ran pod install inside iOS. I still get the following error:

[!] CocoaPods could not find compatible versions for pod "Crashlytics":
  In Podfile:
    Crashlytics (~> 3.13.2)

None of your spec sources contain a spec satisfying the dependency: `Crashlytics (~> 3.13.2)`.

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.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

Does anyone know how to solve this? It seems like an odd issue to encounter after only cloning and running npm install.

mikehardy commented 5 years ago

pod update I believe

Or if in CI you should have the pod install command be pod install —repo-update

All documented in cocoapods docs I think?