pod install返回致命错误:SSL证书问题?

 shilf999_369 发布于 2023-02-06 13:26

我刚按照以下说明安装了CocoaPods:

现在我打开了一个包含CocoaPods的Xcode项目,打开终端,进入该项目文件夹并根据需要键入"pod install",我收到错误:

$ pod install
Setting up CocoaPods master repo
[!] Pod::Executable clone 'https://github.com/CocoaPods/Specs.git' master

Cloning into 'master'...
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': SSL certificate problem: Invalid certificate chain

/Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:217:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
    from /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:210:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `'
    from /usr/bin/pod:23:in `load'
    from /usr/bin/pod:23:in `
'

我不知道这是什么.有人能帮我吗?这是我第一次尝试在OS X Mavericks上使用CocoaPods做任何事情.

谢谢!

1 个回答
  • Github的SSL证书看起来很好,但是你可能因某些原因不信任它,或者你正在使用代理.解决:

    在Mac OS X 10.9(Mavericks)上使用Safari浏览器(不是Chrome,Firefox或Opera)访问https://github.com(否www.).

    如果弹出警报,请按"显示证书"按钮,选中"始终信任",然后选择"继续".

    如果没有弹出警告,请按URL的绿色或灰色安全按钮:

    在此输入图像描述

    然后确保在证书上选中"始终信任".

    如果这不能解决您的问题,请尝试暂时禁用您可能正在运行的任何代理服务器,例如Charles.

    在那之后,pod install应该工作.

    注意:我的答案文本的一部分是从此答案中复制的.

    2023-02-06 13:31 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有