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?
- 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.
- 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.
- 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 2
- flutter clean
- delete /ios/Pods
- delete /ios/Podfile.lock
- flutter pub get
- 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
- How to Create Elevated Button with Icon and Text in Flutter
- How to Use ElevatedButton Widget Flutter
- Flutter Text Underline
- How To stretch an image to fit the whole background 100% height x 100% width in Flutter?
- How to Manage Space Between Column’s Children In Flutter?