Error as follows:

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 forinstructions. To regenerate the Podfile, run: Rm ios/Podfile Warning: Podfile has expired This may cause mismatched versions of Flutter to be embedded in your App, which may cause App Store submissions to be rejected or crash. If you want to keep the local Podfile editor, please refer to https://github.com/flutter/flutter/issues/24641 for instructions. To regenerate the Podfile, run: rm ios/PodfileCopy the code

Solutions:

Most of these problems occur after the UPGRADE of the FLUTTER version. To resolve this problem, follow the following steps

  1. findPodfileFile delete directly, pathProject name /ios/Podfile, or you can do this by running the following command in the project root directory
rm ios/Podfile
Copy the code
  1. RunRe-project, creating a new or updating Podfile file again.