cocoapods错误总结

cocoapods安装流程
http://www.jianshu.com/p/2424e03e1704

  1. ERROR: While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/pod
    2.ERROR: While executing gem ... (OpenSSL::SSL::SSLError)
    hostname "upyun.gems.ruby-china.org" does not match the server certificate

解决方案:苹果系统升级OS X EL Capitan后会出现的插件错误,将安装流程 4.安装CocoaPods 的 (1)sudo gem install cocoapods ——>
改为sudo gem install -n /usr/local/bin cocoapods

2.Unable to find a specification for "..."
pod install 安装不了且 pod search 搜索不到

解决方案:刚开始以为这个已经从pod下线了,但是在github上有
所以应该是本地的pods目录没有更新。
打开终端 输入
pod repo remove master
pod setup
第二步会很慢

你可能感兴趣的:(cocoapods错误总结)