Cocoapods: Error -9806 while trying to integrate a library

不羁的心 提交于 2019-12-23 06:56:16

问题


I like to integrate a zip library in my macOS application.

I created the Podfile with pod init and added the pod to it:

# Uncomment this line to define a global platform for your project
platform :osx, '10.10'

target 'Test' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Test
  pod 'Zip', '~> 0.4'
end

But if I execute pod install I am getting following output on the console (tried it a few times):

Analyzing dependencies
Downloading dependencies
Installing Zip (0.4.3)

[!] Error installing Zip
[!] /usr/bin/git clone https://github.com/marmelroy/Zip.git /var/folders/n5/4f8c27g57tn94vhb7xcd95ww0000gp/T/d20160712-26003-1l6n5lt --template= --single-branch --depth 1 --branch 0.4.3

Cloning into '/var/folders/n5/4f8c27g57tn94vhb7xcd95ww0000gp/T/d20160712-26003-1l6n5lt'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed

回答1:


After installing curl with OpenSSL pod install did work:

$ brew install --with-openssl curl


来源:https://stackoverflow.com/questions/38332542/cocoapods-error-9806-while-trying-to-integrate-a-library

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