Why does a new user account fix my pod install?

别等时光非礼了梦想. 提交于 2019-12-04 14:38:39

问题


I'm using cocoapods, and it errors every time it tries to install Crashlytics. This is the error:

[!] /usr/bin/curl -f -L -o /var/folders/3l/8_q_611x0ms5z5pk1n_79g_40000gn/T/d20160630-21289-u98pwu/file.zip https://kit-downloads.fabric.io/cocoapods/crashlytics/3.7.2/crashlytics.zip --create-dirs --netrc

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect

I'm using OS X 10.11.4 (15E65). So I created a brand spankin' new user account, and this same pod install works just fine! What might be the difference between an old and a new user account that would prevent cocoapods from working properly? Are there permissions or certificates or anything I should be comparing?


回答1:


$ brew update
$ brew upgrade openssl
$ brew link openssl --force
$ brew install --with-openssl curl
$ brew link curl --force

then reload you shell profile (source ~/.bash_profile or source ~/.zshrc), confirm you curl

$ which curl
/usr/local/bin/curl
$ curl --version
curl 7.47.0 (x86_64-apple-darwin14.5.0) libcurl/7.47.0 OpenSSL/1.0.2e zlib/1.2.5

finally you will good to go. :)



来源:https://stackoverflow.com/questions/38131012/why-does-a-new-user-account-fix-my-pod-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!