pod install 遇到的问题

如果你也遇到以下跟我一样的问题那请试试这个解决方案

报错信息是这样的.
pod install 遇到的问题_第1张图片

[!] Error installing DZNEmptyDataSet
[!] /usr/bin/git clone https://github.com/dzenbot/DZNEmptyDataSet.git /var/folders/wh/b2x8d6mn1rn76pky420t7r9m0000gn/T/d20180726-31038-1dbdimr --template= --single-branch --depth 1 --branch v1.8.1

Cloning into '/var/folders/wh/b2x8d6mn1rn76pky420t7r9m0000gn/T/d20180726-31038-1dbdimr'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

###解决方案

先输入这句命令

sudo gem install cocoapods

然后

pod install

即可

你可能感兴趣的:(pod install 遇到的问题)