After a few wrong turns, the way I was able to get the correct version of Ruby to install on my Macbook was using rvm. Use the steps below. If you run into issues, you may need to install homebrew as well.
- Install RVM
curl -sSL https://get.rvm.io | bash
- Install the Ruby version you need (x.x.x).
rvm installĀ 2.7.3
- If you want to set that version as default, run
rvm use 2.7.3 --default
- More docs on rvm: https://rvm.io/rvm/install
- Install bundler
gem install bundler
That should be it! Now you should be able to run bundle install
in your iOS project directory on the terminal, and you’re good to go from there!