美文网首页iOS学习笔记
Xcode8 pod install 报错 “Generatin

Xcode8 pod install 报错 “Generatin

作者: Hank_Zhong | 来源:发表于2016-11-25 15:58 被阅读435次

    今天在写一个新项目的时候,使用cocoapods在执行$ pod install的时候,终端提示Generating Pods project Abort trap: 6

    解决办法:

    删除所有cocoapods gems,
    依次执行以下命令:

    sudo gem uninstall cocoapods
    sudo gem uninstall cocoapods-core
    sudo gem uninstall cocoapods-deintegrate
    sudo gem uninstall cocoapods-downloader
    sudo gem uninstall cocoapods-plugins
    sudo gem uninstall cocoapods-search
    sudo gem uninstall cocoapods-stats
    sudo gem uninstall cocoapods-try
    sudo gem uninstall cocoapods-trunk
    

    然后安装最新发布版本:

    sudo gem install cocoapods --pre
    

    以上原文链接在这里
    -----------------------------我是分割线-----------------------------

    这时候有可能会提示以下错误:

    ERROR:Could not find a valid gem 'cocoapods' (>= 0), here is why:

    Unable to download data from https://ruby.taobao.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://ruby.taobao.org/specs.4.8.gz)

    原因是taobao Gems 源已停止维护,解决办法在这里

    相关文章

      网友评论

        本文标题:Xcode8 pod install 报错 “Generatin

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