zsh% flutter doctor -v
" ✗ CocoaPods installed but not working.
You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
This can usually be fixed by re-installing CocoaPods.
To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
"
cocoapods 설치 오류
rvm 설치하여 해결
curl -L https://get.rvm.io | bash -r stable
export PATH=${PATH}:{rvm설치경로}
/bin/bash --login
rvm install ruby-2.6.5
rvm use ruby-2.6.5
rvm --default use 2.6.5
sudo gem install cocoapods