Flutter installation into MacOS | Cocoapods installation error

103 views Asked by At

I am trying to install flutter into my macOS 13.1 (22C65). I have already installed flutter and Xcode. But I cannot install cocoapods.

After I ran "flutter doctor" to check if anything is left to install, it told me to install cocoapods. But when I run "sudo gem install cocoapods", it shows me the following error message.

enter image description here How can I fix this?

I tried running thissudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc and installed 1 gem. But after I run flutter doctor, it says I still have to install cocoapods.

1

There are 1 answers

0
Maria On

I figured this out.

  1. sudo gem install activesupport -v 6.1.7.4 2.sudo gem install -n /usr/local/bin cocoapods

Then, run flutter doctor to check. It works.