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
- 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!