Once of common errors you may get when you’ve updated your Flutter version and try to run any flutter commands inside your project is “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.”

Warning: Podfile is out of date

You can simply resolve this issue by deleting current Podfiles in your project, so Flutter will regenerate them for you according to your current Flutter version.

If you’re using Linux or MacOS, open a terminal window and navigate to your project directory. then, run the commands below to delete existing Podfiles .

$rm ios/Podfile
$rm android/Podfile

If you’re using Windows, open a command prompt window and navigate to your project directory. then, run the commands below to delete existing Podfiles .

>del ios/Podfile

Now you can try to run any flutter commands inside the project and you will see that the warning is no longer there.

Share article:

Permalink: