【问题标题】:Why does a new user account fix my pod install?为什么新用户帐户会修复我的 pod 安装?
【发布时间】:2016-06-30 18:45:33
【问题描述】:

我正在使用 cocoapods,每次尝试安装 Crashlytics 时都会出错。这是错误:

[!] /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

我使用的是 OS X 10.11.4 (15E65)。所以我创建了一个品牌新用户帐户,同样的pod install 工作得很好!会阻止 cocoapods 正常工作的旧用户帐户和新用户帐户之间可能有什么区别?是否有权限或证书或任何我应该比较的东西?

【问题讨论】:

    标签: macos cocoapods crashlytics


    【解决方案1】:
    $ brew update
    $ brew upgrade openssl
    $ brew link openssl --force
    $ brew install --with-openssl curl
    $ brew link curl --force
    

    然后重新加载你的 shell 配置文件(source ~/.bash_profilesource ~/.zshrc),确认你 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
    

    你终于可以走了。 :)

    【讨论】:

    • 这终于为我解决了curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect Mac OS X 问题,谢谢!!! :)
    • brew link openssl --force开始不起作用:Warning: Refusing to link: openssl Linking keg-only openssl means you may end up linking against the insecure, deprecated system OpenSSL while using the headers from Homebrew's openssl. Instead, pass the full include/library paths to your compiler e.g.: -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
    • 最近我遇到了这个问题,但是 --with-openssl 选项不再受支持,所以我卸载了 curl 并重新安装了 brew install curl-openssl
    猜你喜欢
    • 1970-01-01
    • 2016-12-27
    • 2021-08-31
    • 2022-11-11
    • 2020-06-21
    • 1970-01-01
    • 2015-03-21
    • 2020-05-19
    • 1970-01-01
    相关资源
    最近更新 更多