When I add new plugin in Flutter, I get this error in my runner xcode:
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation
and I have already install CocoaPods and updated. I tried to run pod install and not fixed it help please

In my case the issue was caused by a local android only plugin. I created a dummy podsec file for the plugin, then ran:
It seems like I need to do these steps after every xcode project clean now.