I received a message that cocoapods was successfully installed on my MacBook (M1 air). However, when I run flutter doctor in the terminal, a message pops up saying that it is not installed.
check this error
It looks like you didn't install cocoapods successfully