cocoapods安装和使用常见问题及解决方案

  • cocopods安装后pod install出现以下错误

    /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems.rb:270:in find_spec_for_exe: can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)

    from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems.rb:298:in activate_bin_path

    from /usr/local/bin/pod:22:in

    解决方法:

    sudo gem install -n /usr/local/bin cocoapods


  • pod install 出现 Unable to find a specification for xxxxx

    Lovego:TYJHGame LOVEGO$ pod install

    Analyzing dependencies

    [!] Unable to find a specification for YJ3DTouch

    解决方案:

    pod repo update

    更新一下repo,更新完成之后即可解决无法找到xxx第三方框架的问题了

上一篇:什么是REST架构(转)


下一篇:hdu 5071 vector操作恶心模拟