CocoaPods download repo仓库失败
XiangqiTu opened this issue · comments
git clone CocoaPods Specs 文件失败 过了15分钟左右后报错SSL read()错误。
git clone PLMediaStreamingKit 也是失败,报错类型和 clone CocoaPods Specs 类似 。
都是因为下载的 文件较大,100MB+。
CocoaPods Specs 下载失败,通过手动下载Specs文件,替换解决了。
clone PLMediaStreamingKit 挂VPN 也没有得到有效的解决。
有没有什么解决办法
错误补充
-> Installing PLMediaStreamingKit (2.2.0)
Git download
Git download
$ /usr/bin/git clone
https://github.com/pili-engineering/PLMediaStreamingKit.git
/var/folders/r8/17yqsvnn5_vgmjswt2sjscc80000gn/T/d20170307-47633-4lcrb3
--template= --single-branch --depth 1 --branch v2.2.0
Cloning into '/var/folders/r8/17yqsvnn5_vgmjswt2sjscc80000gn/T/d20170307-47633-4lcrb3'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
[!] Error installing PLMediaStreamingKit
[!] /usr/bin/git clone https://github.com/pili-engineering/PLMediaStreamingKit.git /var/folders/r8/17yqsvnn5_vgmjswt2sjscc80000gn/T/d20170307-47633-4lcrb3 --template= --single-branch --depth 1 --branch v2.2.0
Cloning into '/var/folders/r8/17yqsvnn5_vgmjswt2sjscc80000gn/T/d20170307-47633-4lcrb3'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
O__O "…
换了一个 WiFi + VPN,挂了1-2小时下好了。
打扰了。
而且手动 搭建环境也 找到了 资料。
在wiki里有
不好意思啊,打扰了。
4.2.2 手动导入
我们建议使用 CocoaPods 导入,如果由于特殊原因需要手动导入,可以按照如下步骤进行:
将 Pod 目录下的文件加入到工程中;
将 https://github.com/qiniu/happy-dns-objc HappyDNS 目录下的所有文件加入到工程中;
将 https://github.com/pili-engineering/pili-librtmp Pod 目录下的所有文件加入到工程中;
将 https://github.com/qiniu/iOS-netdiag Pod 目录下的所有文件加入到工程中;
在工程对应 TARGET 中,右侧 Tab 选择 "Build Phases",在 "Link Binary With Libraries" 中加入 UIKit、AVFoundation、CoreGraphics、CFNetwork、CoreMedia、AudioToolbox 这些 framework,并加入 libc++.tdb、libz.tdb 及 libresolv.tbd;
在工程对应 TARGET 中,右侧 Tab 选择 "Build Settings",在 "Other Linker Flags" 中加入 "-ObjC" 选项;