Flutter iOS build failed an error of pod files: Podfile is out of date Flutter iOS build failed an error of pod files: Podfile is out of date ios ios

Flutter iOS build failed an error of pod files: Podfile is out of date


This happens to most of times when i update the flutter SDK, But don't skip updating to make it better and easier because it is very easy to solve

It is necessary to fix - Removing contents of Pods folder will solve the issue, Here is the process of how to do this

  1. To completely clean(Removing all points to links) and create upgraded to the new(uninstall and installing again too), Write following command

    flutter cleanrm -Rf ios/Podsrm -Rf ios/.symlinksrm -Rf ios/Flutter/Flutter.frameworkrm -Rf ios/Flutter/Flutter.podspec
  2. Then for reproduce Podfile follow this command

    rm ios/Podfile
  3. Finally your project is ready to good to go

    flutter run


This mostly happens when you upgrade your flutter application, to solve this issue follow bellow steps

  1. Go to Your_Project_Directory/ios/ and remove Podfile or you can do it by running the following command in the root project directory

    rm ios/Podfile
  2. Run your project again, this will create a new and updated Podfile for you

    flutter run


Use pod install command in your ios directory to install new pods in your project. Even if you already have a Podfile and ran pod install before. This should work for you. I ran into the same problem some time ago and this is how it was solved.