Xcode install cocoapods (error avoidance version)

Step 1: Before installing cocoapods, check the environment: refer to the following:

mac tutorial install cocoapod (100% successful) tried countless times_cocoapods installation_Feng Hanxu's blog-CSDN blog

1. First check the ruby ​​version. ruby-v

2. Check the rvm version. rvm -v

3. View the source. gem sources -l

4. Remove the source. gem sources --remove https://rubygems.org/

5. Replace the source. gem sources --add https://gems.ruby-china.com/

6. Check whether the update is successful. gem sources -l


7. Download cocoapods

sudo gem install cocoapods

Reference:xcode - zsh : command not found: pod - MAcOS Catalina 10. 15 - IT Tool Network

Step 2: If it fails "zsh: command not found: pod"

Reference:zsh: command not found: pod - Jianshu

! ! ! ! It’s best to restart your computer! ! ! !

Then reinstall:

sudo gem install cocoapods

Three: Other failures are as follows:

Reference link:CocoaPods installation method-2021.08.24 - Short book


Error when installing homebrew on mac Failed to connect to raw.githubusercontent.com port 443: Connection refused error:_txl910514's column - CSDN Blog


curl: (7) Failed to connect to raw.githubusercontent.com port 443: Several solutions to Connection refused - Halo3224 - Blog Park

Guess you like

Origin blog.csdn.net/ws1836300/article/details/120561065