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.”
So let’s talk about how to resolve the error “Warning: CocoaPods is installed but broken. Skipping pod install. You appear to have CocoaPods installed but it is not working.” which comes when you try to run flutter commands.