Cocoapods:尝试集成库时出现错误-9806 [英] Cocoapods: Error -9806 while trying to integrate a library
本文介绍了Cocoapods:尝试集成库时出现错误-9806的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我喜欢集成 zip 库。
我使用 pod init 创建了Podfile并添加了pod
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
但是如果我执行 pod install 我正在控制台上获取以下输出(尝试了几次):
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
推荐答案
使用OpenSSL安装 curl pod install 后工作:
After installing curl with OpenSSL pod install did work:
$ brew install --with-openssl curl
这篇关于Cocoapods:尝试集成库时出现错误-9806的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文