Cocoapod install Crashlytics failed

使用 cocoapod 时,遇到了如下几个错误:

[!] Error installing Crashlytics
[!] /usr/bin/curl -f -L -o /var/folders/n0/33vfwqb116g2k7cgrp66m27w0000gn/T/d20200529-3811-1mwzue8/file.zip https://kit-downloads.fabric.io/cocoapods/crashlytics/3.14.0/crashlytics.zip --create-dirs --netrc-optional --retry 2

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:07 --:--:--     0
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to kit-downloads.fabric.io:443
[!] Error installing Fabric
[!] /usr/bin/curl -f -L -o /var/folders/n0/33vfwqb116g2k7cgrp66m27w0000gn/T/d20200529-4228-12euhjq/file.zip https://kit-downloads.fabric.io/cocoapods/fabric/1.10.2/fabric.zip --create-dirs --netrc-optional --retry 2

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:06 --:--:--     0
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to kit-downloads.fabric.io:443

从log来看,应该是联接 https://kit-downloads.fabric.io 失败了.

那么可以做如下这几种尝试:

运行如下命令

echo insecure >> ~/.curlrc

cocospod install 完装完成,记得把上面这个 .curlrc 中的 insecure 删除掉哦, 以免影响其它操作.

  1. 如果第一种方法还不行, 那就上&梯&子&吧

转自: HH

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。