- on Android Studio
Warning: CocoaPods not installed. Skipping pod install. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see [https://flutter.dev/platform-plugins](https://flutter.dev/platform-plugins) To install see [https://guides.cocoapods.org/using/getting-started.html#installation](https://guides.cocoapods.org/using/getting-started.html#installation) for instructions.
Exception: CocoaPods not installed or not in valid state.
- on Xcode
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
解决:
close Android Studio and open terminal and paste
open /Applications/Android\ Studio.app
重新打开后好了