最近项目中的cocoapods出现问题,需要重装,结果本来感觉好简单的事儿搞了一天多,简单的总结一下我所遇到的坑,同时附上我参考的资料和链接吧。
cocoapods更新:
更新gem
cocoapods语法参考:http://www.jianshu.com/p/8af475c4f717
homebrew常用命令:http://blog.csdn.net/jt521xlg/article/details/47129869
homebrew:brew update慢,更换镜像源,参考地址:https://www.logcg.com/archives/1301.html http://www.jianshu.com/p/61634c8ed302
mac 10.10以上开启端口转发https://my.oschina.net/91jason/blog/546711
更换cocoapods镜像源时候遇到报错:Unable to require openssl, install OpenSSL and rebuild ruby (preferred)解决方法:http://ruby-china.org/topics/28575
更新gem报错:/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in `to_specs' 参考方法:gem uninstall --all;sudo gem uninstall --all
更新ruby:参考地址:http://blog.csdn.net/qq_34047841/article/details/51890755
更新ruby遇到错误requirements_osx_brew_update_system ruby-2.2.4;终端输入:rvm autolibs read-only 参考解决地址:http://www.genshuixue.com/i-cxy/p/7645841
ruby导致的cocoapods安装问题,'GEM_PATH=/Users/zhen/.rvm/gems/ruby-2.2.4:/Users/zhen/.rvm/gems/ruby-2.2.4@ 更换镜像源,参考地址:http://www.jianshu.com/p/ec96ff92117f
安装cocoapods 遇到错误RPC failed; curl 56 SSLRead() return error -36 ,解决方法:打开终端命令行,输入一下命令:sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer参考地址:http://blog.csdn.net/wm9028/article/details/51840759
遇到错误:RPC failed; curl 56 SSLRead() return error -9806:参考地址:http://www.jianshu.com/p/ffc0a67d6d75
遇到错误:Operation not permitted - /usr/bin/xcodeproj 参考地址:http://blog.csdn.net/sing_sing/article/details/49762359
卡在pod setup界面:参考地址:http://blog.csdn.net/samoy/article/details/51956799
10.12下/usr/local must be writable! 权限改变:终端运行:sudo chown -R $(whoami) /use/local
cocoapods的降版本的方案:http://www.meetrue.com/archives/133
其他参考,xcode8下安装cocoapods的地址:http://blog.csdn.net/jhy835239104/article/details/52655122,http://www.jianshu.com/p/d731664deea4,http://blog.csdn.net/sing_sing/article/details/49762359,http://www.cnblogs.com/brycezhang/p/3675670.html
另附上看到的一篇比较基础的关于终端学习的教程:https://www.renfei.org/blog/mac-os-x-terminal-101.html
网友评论