美文网首页
加速 Xcode SwiftPM dependencies fe

加速 Xcode SwiftPM dependencies fe

作者: 小杰杰杰 | 来源:发表于2021-01-13 15:33 被阅读0次

如果你使用SwiftPM引用Github上的 Swift Package速度比较慢
可以试试配置代理:

命令行$ git config --global http.proxy http://127.0.0.1: 8888 #换成你自己的代理

或者

$ vim ~/.gitconfig

#添加代理:
[http]
proxy =socks5://127.0.0.1: 8888 #换成你自己的代理
[https]
proxy = socks5://127.0.0.1: 8888 #换成你自己的代理

#保存退出

原理:
Git设置加速代理,Xcode SwiftPM dependencies fetching使用默认的Git配置文件~/.gitconfig

see:
https://stackoverflow.com/questions/783811/getting-git-to-work-with-a-proxy-server-fails-with-request-timed-out

相关文章

网友评论

      本文标题:加速 Xcode SwiftPM dependencies fe

      本文链接:https://www.haomeiwen.com/subject/dmnuaktx.html