ZXing CoocaPods被墙的问题

最近在一个项目里打算使用pod整合过的ZXing第三方源码,在pod update时会出现

ArthurmatoMacBook-Pro:DataMoverCloud Arthur$ pod update

Update all pods

Analyzing dependencies

Downloading dependencies

Using ASIHTTPRequest (1.8.2)

Using DTAlertView (1.2.1)

Using JSNotifier (0.0.1)

Using M13ProgressSuite (1.2.3)

Using MBProgressHUD (0.8)

Using NSData+Base64 (1.0.0)

Using Reachability (3.1.1)

Using UIAlertView-Blocks (1.0)

Installing ZXing (2.2)

[!] /usr/bin/svn export --non-interactive --trust-server-cert --force "http://zxing.googlecode.com/svn//tags/2.2" /Users/Arthur/Desktop/DataMoverCloud/Pods/ZXing


svn: E175002: Unable to connect to a repository at URL 'http://zxing.googlecode.com/svn/tags/2.2'


svn: E175002: OPTIONS of 'http://zxing.googlecode.com/svn/tags/2.2': could not connect to server (http://zxing.googlecode.com)


原因主要是国内是无法正常访问到googlecode的,只能翻.

在mac下主要的翻墙工具一般也就是goagentx(goagent的一个UI)

把zxing.google.com加到配置里,使其可以通过goagnet来访问googlecode.

此时,通过127.0.0.1:8088端口就可以访问googlecode.com了


回到svn的问题

修改svn proxy

ArthurmatoMacBook-Pro:test0611 Arthur$ vi ~/.subversion/servers 

在最后加入

http-proxy-host = 127.0.0.1

http-proxy-port = 8088

http-compression = no


完成

此时,再次pod update --verbose

就可以正常svn到ZXing了


好运


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值