Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. To update the CocoaPods specs, run: pod repo update

2,389

You should go to iOS folder and delete:

pods folder and podfile.lock

enter image description here

after that, you should add below lines to yaml file

  firebase_core: ^1.12.0         "[last version in dev dart]"
  firebase_analytics: ^8.3.4     "[last version in dev dart]"
  firebase_crashlytics: ^2.3.0.  "[last version in dev dart]"
  firebase_messaging: ^11.1.0.   "[last version in dev dart]"

run your app to install and update pod file

Share:
2,389
Vepa Sabyrow
Author by

Vepa Sabyrow

Updated on January 03, 2023

Comments

  • Vepa Sabyrow
    Vepa Sabyrow over 1 year

    When I start to run flutter ios the project with "flutter run" it gives `Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. To update the CocoaPods specs, run: pod repo update

    Error running pod install `

    Then I run "pod install" inside ios/ It gives

    [!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": In Podfile: firebase_core (from .symlinks/plugins/firebase_core/ios) was resolved to 1.12.0, which depends on Firebase/CoreOnly (= 8.11.0)

    None of your spec sources contain a spec satisfying the dependency: Firebase/CoreOnly (= 8.11.0).

    You have either:

    • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.

    Then I tried pod install --repo-update It gives

    [!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": In Podfile: firebase_core (from .symlinks/plugins/firebase_core/ios) was resolved to 1.12.0, which depends on Firebase/CoreOnly (= 8.11.0)

    None of your spec sources contain a spec satisfying the dependency: Firebase/CoreOnly (= 8.11.0).

    You have either:

    • mistyped the name or version.
    • not added the source repo that hosts the Podspec to your Podfile.

    Do you want to help me about this problem?

    • tomerpacific
      tomerpacific about 2 years
      Can you share your Podfile?
    • Vepa Sabyrow
      Vepa Sabyrow about 2 years
    • Maziar Saadatfar
      Maziar Saadatfar about 2 years
      can you share your yaml file, your pod file create with your yaml file.
  • Vepa Sabyrow
    Vepa Sabyrow about 2 years
    Thanks a lot. I did this but finally I fixed this problem by using "pod repo remove trunk" and "pod install."