Warning: Podfile is out of date

  • 发表于
  • IOS , macOS

真机或模拟器时报:

Podfile is out of date This can cause issues if your application depends on plugins that do not support iOS or macOS.

要完全清理(删除所有指向链接的点)并创建升级到新的(卸载并再次安装),请编写以下命令

flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec

再删除Podfile以重建

rm ios/Podfile

最后再

flutter run或debug