I have been trying to install flutter on a brand new mac, and there has been a lot of troubleshooting involved. It started with the system ruby being out of date, recommendation elsewhere not to upgrade the system ruby because that can break MacOS, the need to install a user ruby in parallel but get it to apply globally. Most of the forum posts I saw elsewhere on how to do that didn’t work. brew doesn’t work. Putting lines in .zshrc doesn’t work (terminal only, not visible elsewhere). rbenv doesn’t work. All of the above end up with a hodgepodge of system ruby colliding with user ruby and cocoapods not knowing which way is up. What worked for that first issue is rvm.
There’s been a lot more. Basically every stage of installing dependencies has failed one way or another and involved a lot of troubleshooting at every step.
So I want to capture here instructions that have worked thus far for me.
NOTE: Flutter forum doesn’t allow more than 2 links per post, and I tried to use substitutions but they’re onto me. I’m going to have to fragment this by replying to myself.
Let’s get to it… In a terminal:
curl -L https://get.rvm.io | bash -s stable
source /Users/$USER/.rvm/scripts/rvm
rvm install ruby-3.4.4
rvm --default use 3.4.4
gem install cocoapods
This does seem to get the job done. System ruby is intact, user ruby is in place cocoapods is good in the context of user ruby. Proof:
briantietz@Brians-Mac-mini ~ % which ruby
/Users/briantietz/.rvm/rubies/ruby-3.4.4/bin/ruby
briantietz@Brians-Mac-mini ~ % ruby -v
ruby 3.4.4 (2025-05-14 revision a38531fd3f) +PRISM [x86_64-darwin24]
briantietz@Brians-Mac-mini ~ % /usr/bin/ruby -v
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin24]
Moving on…
Download, move to /Applications
Launch Visual Studio Code
Cmd+Shift+P
shell command: install ‘code’ command in PATH
Quit Visual Studio Code
In a new terminal:
code
click “extensions” four squares icon in left sidebar
search: flutter, install
Cmd+Shift+P
flutter
Download SDK
In ~ new folder named development
Clone flutter to there
In a new terminal:
sudo vi /etc/paths
add line at end (probably need to replace $USER with the actual user name):
/Users/$USER/development/flutter/bin
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
Quit Visual Studio Code
In a new terminal:
flutter doctor
That’s part 1. As far as I can go with the links limit. To be continued…