ensuring ruby -v
matches .ruby-version
will successfully install each time i.e. 2.7.6 atm
checked temporarily with brew remove cocoapods
(removing ruby 3.2) then npx pod-install
(fetches correct versions)
after brew install rbenv ruby-build
needed to rbenv init
then echo 'eval "$(rbenv init -)"' >> ~/.zshrc
then restart or source ~/.zshrc
now rbenv install
detects/installs .ruby-version
verified with ruby -v