Hello Guys How are you all? Hope You all are fine. When I was trying to run my flutter app and suddenly I get the following error in my stack track. error running pod install in flutter on mac in a flutter. So today Here I come with all possible solutions for this error.
We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.
How Error error running pod install in flutter on mac Occurs ?
My app worked in android without any error but as I Run my app in ios I face following error in my stack track.
Error running pod install
How to Solve error running pod install in flutter on mac Error?
- How to Solve error running pod install in flutter on mac Error?
To Solve error running pod install in flutter on mac Error Just try to manually install pods file by following command. First of delete podfile.lock file from your_project/ios folder. Open terminal at the root level of your project. open ios folder by this command cd ios then run pod install If pod install gives any error then run this pod install –repo-update Just run your project.
- error running pod install in flutter on mac
To Solve error running pod install in flutter on mac Error Just try to manually install pods file by following command. First of delete podfile.lock file from your_project/ios folder. Open terminal at the root level of your project. open ios folder by this command cd ios then run pod install If pod install gives any error then run this pod install –repo-update Just run your project.
Solution 1 : Install Pod manually
Just try to manually install pods file by following command.
- First of delete podfile.lock file from your_project/ios folder.
- Open terminal at the root level of your project.
- open ios folder by this command cd ios
- then run pod install
- If
pod install
gives any error then run this pod install –repo-update - Just run your project.
Solution 2 : Install Pod automatically
First of all delete all file and folder given below, then just run flutter run will automatic install pods and other file.
- First of all Delete
podfile.lock
in ios folder, if it exists. - Then Delete
podfile
from ios folder. - Just Delete the Pods folder in the ios directory.
- now Run flutter clean in the terminal.
- after that Run, flutter pub get to the terminal.
- then Run
flutter run
in the terminal.
Solution 3 : Pod install
Just follow below step to solve this error.
- flutter clean
- rm -Rf ios/Pods
- then rm -Rf ios/.symlinks
- rm -Rf ios/Flutter/Flutter.framework
- rm -Rf ios/Flutter/Flutter.podspec
- cd ios
- pod install
- cd ..
- flutter build ios
- flutter run
Summery
So, It’s All About This Error. I hope this tutorial helps you to Solve your error. Please Comment Below if You stucks anywhere with my code. And please comment below on which solution worked for you. Thank You.
Also Check Out Below Tutorials
- error: Struct ‘Utf8’ is empty. Support for empty structs is deprecated… Use Opaque instead in flutter
- Error: Only static members can be accessed in initializers
- AnimationController The named parameter ‘vsync’ isn’t defined
- Flutter App stuck at “Running Gradle task ‘assembleDebug’… ”
- Error: No named parameter with the name ‘keyboardDismissBehavior’
Leave a Reply