How to fix Flutter stuck at “running pod install…” when running on vscode building on iPhone simulator.
You can subscribe to TLDRStories.com to get your daily dose of tech news, condensed into a few stories.
This can frustrating, I encountered this flutter issue on my iPhone simulator 3 times in a row when dealing with firebase authentication, google sign, and Facebook login in so I decided to write it down to help you guys. Here is the quick solution if you are stuck at “running pod install…” when running ios simulator on Flutter.
How does this error happen?
This happened when I copy and paste a plugin or flutter pub package,firebase_auth
on pubspec.yaml
while a build is running on the iPhone simulator. Although the installation was successful, there is an error showing the plugin is missing. So I stop and re-run the app on the iPhone simulator and it got stuck at “running pod install…”.
This is the error on my vscode debug console.
flutter: error:MissingPluginException(No implementation found for method
Solution
- Delete the
podfile.lock
file from the ios folder. - Open the terminal, go to ios folder directory and run
Pod install
. It could take some time to install.