In a recent study of static analysis code OCLint, which need to format the input analysis results, you need to use xcpretty, but when I
gem install xcpretty
I found the error. Given the information as follows
Data from downloads to Unable https://ruby.taobao.org/ -. 1 = The SSL_connect returned errno = error = 0 State: Certificate Verify failed ( https://ruby.taobao.org/specs.4.8.gz )
This error information a look that is the source of the problem: https://ruby.taobao.org this source was installed two years ago, I installed cocoaPods the time, is not a problem arises?
Go rubygems official website stroll around,
Library packaging and distribution for Ruby. [https://rubygems.org/](https://rubygems.org/)
Tips replaced according to foreign sources to try the official website, first remove the old
gem sources -a http://rubygems.org/ --remove https://ruby.taobao.org/
报错:bad response Not Found 404 (http://rubygems.org/specs.4.8.gz)
This source not visit, or to estimate over the wall, or can go to find domestic sources of it.
rubygems mirrored this article you can see, I am now replace the mirror is there to find.
After finding the image is simple, replacement click on it.
gem sources --add https://gems.ruby-china.com
Finally loaded on.
If you appear in gem install similar error when I can try the method I provided above. I hope for your help.
Reproduced in: https: //www.jianshu.com/p/73e7641dab02