无法Pod install第三方库的解决办法

问题

当pod install时,迟迟pod不下来第三方库,多试几次也是失败,如下方所示:

Using TYPagerController (2.1.2)
Using UMCAnalytics (6.0.3)
Using UMCCommon (2.0.1)
Using UMCShare (6.9.5)
Installing WCDB (1.0.7.5)

[!] Error installing WCDB
[!] /usr/bin/git clone https://github.com/Tencent/wcdb.git /var/folders/m0/27747mqj6dl_fqjhn1xhc0_40000gn/T/d20190626-51408-1clv3zm --template= --single-branch --depth 1 --branch v1.0.7.5

Cloning into '/var/folders/m0/27747mqj6dl_fqjhn1xhc0_40000gn/T/d20190626-51408-1clv3zm'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

解决办法:

  • clone第三库的源代码,将源代码拷贝到Pod目录,路径为/Users/当前电脑的用户名/Library/Caches/CocoaPods/Pods/Release
    三方库
  • 将xxx.podspec.json文件拷贝到pod的Specs目录下,具体路径为:/Users/当前电脑的用户名/Library/Caches/CocoaPods/Pods/Specs/Release
    podspec文件
  • 再运行pod install,成功!
    WCDB安装成功

你可能感兴趣的:(无法Pod install第三方库的解决办法)