I have successfully (re)installed them, with
sudo gem uninstall cocoapods && sudo gem install cocoapods
But they are not found by Flutter (flutter doctor
keeps giving CocoaPods not installed
).
It might be because of two different Ruby versions.
The executable pod
is not found indeed...(which pod
)
Relevant executables are:
My Bash setup file has:
# Ruby
export PATH="/usr/local/opt/ruby/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/ruby/lib"
export CPPFLAGS="-I/usr/local/opt/ruby/include"
export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"
Any idea?
Ps: I am on macOS v12 (Monterey)
Installing using Homebrew (executable brew
) fixes the issue:
Remember to run brew link --overwrite cocoapods
.