美文网首页
cocoapods-------pod update失败了

cocoapods-------pod update失败了

作者: lizhi_boy | 来源:发表于2017-02-08 13:40 被阅读258次

    在执行pod update 的时候出现了这个问题
    [!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master.
    You can try adding it manually in ~/.cocoapods/repos or via pod repo add.

    QQ20170208-133753.png

    参考众多网友的意见后的解决方案:

    1、终端输入:sudo xcode-select -switch /Applications/Xcode.app
    (/Applications/Xcode.app这个路径就是xcode的路径,打开finder中应用程序把xcode拖进终端即可)
    2、这时候提示输入密码,输入密码,回车
    3、执行更新操作:pod update --no-repo-update

    4、接下来解释静静等待下载了。。。。。。。。。。。

    相关文章

      网友评论

          本文标题:cocoapods-------pod update失败了

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