Mac CocoaPods错误集锦

  • 错误
    Error fetching http://ruby.taobao.org/:
    bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
    解决方案
    把安装流程中 $gem sources -a http://ruby.taobao.org/ ---改为----$gem sources -a https://ruby.taobao.org/
    也就是执行命令

    gem sources --remove http://ruby.taobao.org
    gem sources -a https://ruby.taobao.org
    
  • 错误
    ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj
    解决方法
    把安装的语句改成

    sudo gem install -n /usr/local/bin cocoa pods

你可能感兴趣的:(Mac CocoaPods错误集锦)