0

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 - enter image description here

This is what Flutter Doctor says - enter image description here

This is what gem list says -

enter image description here

This is what I have tried so far -

  1. sudo gem uninstall cocoapods

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.

Sumchans
  • 3,088
  • 6
  • 32
  • 59

2 Answers2

0
sudo gem uninstall cocoapods
sudo gem uninstall cocoapods-core
sudo gem install cocoapods

Then close and open the terminal before running flutter doctor

Muhammad Hussain
  • 966
  • 4
  • 15
0

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

Congyu WANG
  • 61
  • 1
  • 4