CocoaPods installation is too slow how to install proxy in terminal

When I use the terminal to "install" or "upgrade" cocoapods, I find it takes a long time to extract.

So, I am wondering if there is a way to set up a proxy server for my terminal so that it returns the result faster?

+6
source share
3 answers

Choice 1

Step 1:

From Google, select a proxy

Step 2:

Configure proxy on Mac

Step 3:

In your terminal, install a proxy with your port:

export http_proxy='http://your_proxy:8000' 

Choice 2

 pod repo remove master pod repo add master https://gitcafe.com/lloydsheng/Specs.git pod repo update 

Choice 3 Recommend

 pod install --verbose --no-repo-update 
+19
source

In my case, I found that he was stuck in "dependency analysis" due to an error in my subfile.

Try the following:

 pod install --verbose 
+5
source
 pod install --verbose --no-repo-update pod update --verbose --no-repo-update 
+3
source

All Articles