원하는 버전설치가 바로 안되기 때문에 아래와 같이 진행하자. brew install rbenv export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init - zsh)" source ~/.zshrc rbenv install 3.0.0 && rbenv rehash rbenv global 3.0.0 경로확인 > which ruby /Users/yechan/.rbenv/shims/ruby > which -a gem /Users/yechan/.rbenv/shims/gem /usr/bin/gem cocospods 설치해보자 gem install cocoapods