ZXing CoocaPods被墙的问题

来源:互联网 发布:python r语言接口 编辑:程序博客网 时间:2024/05/22 06:35

最近在一个项目里打算使用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