Skip to content

Instantly share code, notes, and snippets.

@boherna
Last active August 13, 2024 17:02
Show Gist options
  • Save boherna/536f13431d2b9e7b03ef to your computer and use it in GitHub Desktop.
Save boherna/536f13431d2b9e7b03ef to your computer and use it in GitHub Desktop.
Solve cocoapods, ruby, gems, brew conflicts...
Open Terminal and enter:
gem uninstall cocoapods (Select 'All versions' option.)
sudo rvm implode (Confirm with 'yes' when prompted.)
sudo brew doctor
sudo brew update
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
\curl -L https://get.rvm.io | bash -s stable --ruby
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup (Maybe not needed)
sudo gem update --system
gem install cocoapods
Source: http://railsapps.github.io/installrubyonrails-mac.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment