cocoapods 错误处理

本文针对使用Git和CocoaPods过程中遇到的典型错误提供了详细的解决方案,包括RPC失败、SSL读取错误等问题,并指导如何通过配置Xcode、调整Git设置等手段来解决这些常见问题。

error: RPC failed; curl 56 SSLRead() return error -36

[!] /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

解决方案: 
打开终端命令行,输入以下命令:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

注意:1."/Applications/Xcode.app/Contents/Developer"此路径是当前默认XCode的所在位置,如果安装了多个XCode需要多加注意

   2.做了以上操作之后还会报错,将XCode删除,重新安装

PS:获取当前XCode路径,在终端中输入

$ xcode-select --print-path
================================================================================================================================================



================================================================================================================================================

error: RPC failed; curl 56 SSLRead() return error -9806

解决方案: 

打开终端命令行,输入以下命令:

$ git config --global http.postBuffer 524288000
$ pod setup

 

================================================================================================================================================



================================================================================================================================================

ERROR:  While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

解决方案:

打开终端输入以下命令

$ sudo nvram boot-args="rootless=0"
$ sudo reboot
$ sudo gem install cocoapods -V

 

 

转载于:https://www.cnblogs.com/czq1989/p/6593645.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值