close

[Solved] Flutter: CocoaPods’s specs repository is too out-of-date to satisfy dependencies

Hello Guys How are you all? Hope You all are fine. When I was trying to run my flutter app and suddenly I get the following error in my stack track. Flutter: CocoaPods’s specs repository is too out-of-date to satisfy dependencies in a flutter. So today Here I come with all possible solutions for this error.

We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.

How Flutter: CocoaPods’s specs repository is too out-of-date to satisfy dependencies Error Occurs ?

In android my project working fine but as I run project in iOS Its give me following error of Pds related.

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

How to Solve Flutter: CocoaPods’s specs repository is too out-of-date to satisfy dependencies Error?

  1. How to Solve Flutter: CocoaPods's specs repository is too out-of-date to satisfy dependencies Error?

    To Solve Flutter: CocoaPods's specs repository is too out-of-date to satisfy dependencies You just have to manually delete local copies of the Specific directory and Reinstall the new version of the Specs repository. Just use the following command. Open your terminal at root level of your project. Just type cd ios. rm -rf Podfile.lock (YourPoject/ios/Podfile.lock). Or manually Delete Podfile.lock Run pod install –repo-update. Then Run flutter clean Once complete, rebuild your Flutter application: flutter run.

  2. Flutter: CocoaPods's specs repository is too out-of-date to satisfy dependencies

    To Solve Flutter: CocoaPods's specs repository is too out-of-date to satisfy dependencies You just have to manually delete local copies of the Specific directory and Reinstall the new version of the Specs repository. Just use the following command. Open your terminal at root level of your project. Just type cd ios. rm -rf Podfile.lock (YourPoject/ios/Podfile.lock). Or manually Delete Podfile.lock Run pod install –repo-update. Then Run flutter clean Once complete, rebuild your Flutter application: flutter run.

Solution 1

This error occurs due to Cocoapods. You just have to manually delete local copies of Specific directory and Reinstall  the new version of the Specs repository. Just use following command.

  1. Open your terminal at root level of your project.
  2. Just type cd ios.
  3. rm -rf Podfile.lock (YourPoject/ios/Podfile.lock). Or manually Delete Podfile.lock
  4. Run pod install --repo-update.
  5. Then Run flutter clean
  6. Once complete, rebuild your Flutter application: flutter run.

Solution 2

  1. flutter clean
  2. delete /ios/Pods
  3. delete /ios/Podfile.lock
  4. flutter pub get
  5. from inside ios folder: pod install Run

Summery

So, It’s All About This Error. I hope this tutorial helps you to Solve your error. Please Comment Below if You stucks anywhere with my code. And please comment below on which solution worked for you. Thank You.

Also Check Out Below Tutorials

Leave a Comment

%d bloggers like this: