skip to Main Content

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.

2

Answers


  1. sudo gem uninstall cocoapods
    sudo gem uninstall cocoapods-core
    sudo gem install cocoapods
    

    Then close and open the terminal before running flutter doctor

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search