Home > front end >  Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. To update the C
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. To update the C

Time:02-21

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?

CodePudding user response:

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

  • Related