美文网首页
cocoapods升级遇到的问题

cocoapods升级遇到的问题

作者: Eternaldream | 来源:发表于2016-05-20 17:04 被阅读121次

    CocoaPods 1.0.0 is available.
    To update use: gem install cocoapods
    Until we reach version 1.0 the features of CocoaPods can and will change.
    We strongly recommend that you use the latest version at all times.

    提示cocoapods发出了1.0版本,赶紧更新

    执行gem install cocoapods更新cocoapods报这个错误:

    ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
    Unable to download data from https://ruby.taobao.org/ - server did not return a valid file (https://ruby.taobao.org/latest_specs.4.8.gz)
    ERROR: Possible alternatives: cocoapods
    提示没有找到一个有效的文件,后来想起来MAC系统升级后CocoaPods的路径改变了,Google之后输入以下命令:
    sudo gem install -n /usr/local/bin cocoapods --pre
    升级成功!
    pod --version查看CocoaPods版本

    2B51D51A-CC04-4DEB-821C-DBC4039A9EA4.png
    搞定收工~

    相关文章

      网友评论

          本文标题:cocoapods升级遇到的问题

          本文链接:https://www.haomeiwen.com/subject/rkynrttx.html