Solve Flutter running IOS error: Podfile is out of date

Problem Description

The Flutter project has not been run on IOS for a long time, and suddenly wanted to run it on ios, and the following prompt came out.

Warning: Podfile is out of date
  This can cause issues if your application depends on plugins that do not support iOS or macOS.
  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

Error launching application on iPhone 12 Pro Max.

solution

According to the prompt, some dependencies in the Podfile are out of date. Delete the Podfile and run it again to automatically generate the latest podfile.

myMacBook-Pro:pic-editor ado$ rm ios/Podfile

After running, wait patiently for the build to complete.

Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done.                                           203.4s
Debug service listening on ws://127.0.0.1:52091/8oreY9SFHj0=/ws
Syncing files to device iPhone 12 Pro Max...

Guess you like

Origin blog.csdn.net/adojayfan/article/details/122105053