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 iOS build failed Warning: Podfile is out of date 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 iOS build failed Warning: Podfile is out of date Occurs ?
When I was trying to run my flutter app and suddenly I get the following error in my stack track
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Warning: Podfile is out of date
This can cause a mismatched version of Flutter to be embedded in your app, which may result in App Store submission rejection or crashes.
If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/24641 for instructions.
To regenerate the Podfile, run:
rm ios/Podfile
Warning: Podfile is out of date
This can cause issues if your application depends on plugins that do not support iOS.
See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms for details.
If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/45197 for instructions.
To regenerate the Podfile, run:
rm ios/Podfile
How to Solve Flutter iOS build failed Warning: Podfile is out of date Error?
- How to Solve Flutter iOS build failed Warning: Podfile is out of date Error?
To Solve Flutter iOS build failed Warning: Podfile is out of date You just need to delete Podfile and then just run your app will automatically reproduce Podfile. Just Go to
Your_Project_Directory/ios/
open terminal from ios folder. Then just removePodfile
or you can do it by running the following command in the root project directory. rm ios/Podfile thenRun
your project again, this will create a new and updatedPodfile
for you. - Flutter iOS build failed Warning: Podfile is out of date
To Solve Flutter iOS build failed Warning: Podfile is out of date You just need to delete Podfile and then just run your app will automatically reproduce Podfile. Just Go to
Your_Project_Directory/ios/
open terminal from ios folder. Then just removePodfile
or you can do it by running the following command in the root project directory. rm ios/Podfile thenRun
your project again, this will create a new and updatedPodfile
for you.
Solution 1 : Reproduce Podfile
This error occurs when you updated flutter Or updated plugin but Pods not updated. So to solve this error we just need to delete Podfile and then just run your app will automatically reproduce Podfile.
- First of all run flutter clean
- Then just delete Pods by this command rm -Rf ios/Pods
- rm -Rf ios/.symlinks
- Then rm -Rf ios/Flutter/Flutter.framework
- rm -Rf ios/Flutter/Flutter.podspec
- Now just delete Podfile by This command rm ios/Podfile
- Then just flutter run it will reproduce podfile.
- I hope your error should be solved at this step.
Solution 2 : rm ios/Podfile
Just Go to Your_Project_Directory/ios/
open terminal from ios folder. Then just remove Podfile
or you can do it by running the following command in the root project directory. rm ios/Podfile then Run
your project again, this will create a new and updated Podfile
for you.
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 Launching Google Maps and Apple Maps in Flutter
- Unable to load asset Flutter
- Flutter: Unimplemented handling of missing static target
- How to convert TimeStamp in a flutter
- New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version
Leave a Reply