close

[Solved] Flutter iOS build failed Warning: Podfile is out of date

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?

  1. 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 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.

  2. 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 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.

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.

  1. First of all run flutter clean
  2. Then just delete Pods by this command rm -Rf ios/Pods
  3. rm -Rf ios/.symlinks
  4. Then rm -Rf ios/Flutter/Flutter.framework
  5. rm -Rf ios/Flutter/Flutter.podspec
  6. Now just delete Podfile by This command rm ios/Podfile
  7. Then just flutter run it will reproduce podfile.
  8. 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

Leave a Comment

%d bloggers like this: