Reputation: 3784
I have a M1 Mac. I had this app working perfectly fine until last week. Past two days I am trying to figure out a solution for the below issue -
This is what Flutter Doctor says -
This is what gem list says -
This is what I have tried so far -
2.sudo gem install cocoapods
Ran the app, I get the same error.
Then I uninstalled cocoapods and installed with brew -
1.sudo gem uninstalled cocoapods
2.brew install cocoapods
3.pod setup
Ran the app, I get the same error. I have cocoapods installed, why does it say not installed when running the app and using when running flutter doctor?
I have tried a lot of steps mentioned in stackoverflow and github.
Upvotes: 0
Views: 1119
Reputation: 71
I finally solved this not using gem install, but by switching to brew install. You may try it if you are using MacOS. Learned from the following answer: https://stackoverflow.com/a/71398813/16279954
Upvotes: 0
Reputation: 1244
sudo gem uninstall cocoapods
sudo gem uninstall cocoapods-core
sudo gem install cocoapods
Then close and open the terminal before running flutter doctor
Upvotes: 0