当我使用终端“设置”或“更新”cocoapods 时,我发现它需要很多时间来获取。
所以我想知道是否有办法为我的终端设置代理,以便它更快地返回结果?
最佳答案
选择 1
第一步:
从 Google 选择代理
第 2 步:
为您的 Mac 设置代理
第 3 步:
在您的终端中使用您的端口设置代理:
export http_proxy='http://your_proxy:8000'
选择 2
pod repo remove master
pod repo add master https://gitcafe.com/lloydsheng/Specs.git
pod repo update
选择3推荐
pod install --verbose --no-repo-update
关于ios - CocoaPods 设置太慢,如何在终端中设置代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21822872/