先安裝Ruby manager,參考下面這個網頁的指導: https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/#start-here-if-you-choose-the-long-and-manual-route 在終端機介面的指令列輸入下列指令,裝好Homebrew: /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 輸入下列指令: gem install cocoapods --user-install 祝你成功~