在安装cocoapods遇到的问题git
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'... error: RPC failed; curl 56 SSLRead() return error -36 fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
解决方案:
打开终端命令行,输入一下命令:github
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
并必定是这行代码,要根据本身的状况,来修改这个命令行
一、固然一个xcode执行这行确定没问题
二、也许你是多个xcode
那么你的命令行就要修改一下:xcode
sudo xcode-select -switch /Applications/Xcode 7.3.1.app/Contents/Developer
根据你默认的xcode来修改在/Applications/和/Contents/Developer中间的app的名字,若是你默认的是Xcode x.x.x.app,中间就要替换掉哟!app
三、最简便的方式是:
先在终端输入”sudo xcode-select -switch “,而后,打开Xcode—>右键显示包内容,找到Developer文件夹拖到终端里面curl
xcode-select [-help] xcode-select [-switch xcode_folder_path] xcode-select [-print-path] xcode-select [-version]
例如:
打印当前xcode的路径ui
xcode-select --print-path
输出:lua
/Applications/Xcode.app/Contents/Developer