安装pod时SSL证书安装失败?

时间:2015-09-14 13:45:58

标签: ios ssl-certificate cocoapods crashlytics

当我尝试安装一个包含崩解剂的podfile时,我收到此错误:

Installing Crashlytics (3.3.1)

[!] Error installing Crashlytics
[!] /Applications/XAMPP/xamppfiles/bin/curl -f -L -o /var/folders/1d/2xlstwrn5qd_jf64zznfb2nc0000gn/T/d20150914-12348-1fayiwa/file.zip https://kit-downloads.fabric.io/ios/com.twitter.crashlytics.ios/3.3.1/com.twitter.crashlytics.ios-default.zip --create-dirs

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

是什么导致了这个问题?

1 个答案:

答案 0 :(得分:21)

最后在Project Folder上解决了这个问题:

echo insecure >> ~/.curlrc
相关问题