cocoapods 错误处理

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
================================================================================================================================================


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

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo }
span.s1 { }

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

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #c33720 }
span.s1 { }

时间: 2024-10-12 07:55:38

cocoapods 错误处理的相关文章

cocoapods错误整理

xcode升级导致cocoapods很多奇葩问题 1.pod setup执行后半年没反应 解决办法设置淘宝的镜像 $ gem sources --remove https://rubygems.org/ //等有反应之后再敲入以下命令 $ gem sources -a http://ruby.taobao.org/ 检查一下看看 $ gem sources -l *** CURRENT SOURCES *** http://ruby.taobao.org/ 出现这个是正确的 好容易安装好了,然后

MAC 升级后cocoapods错误解决

MAC升级到10以后,使用cocoapods会报下面的错误: $ pod search AFNetworking /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwi

cocoapods错误You cannot run CocoaPods as root. (CLAide::Help)解决办法

安装好了Cocoapods却出现 /Library/Ruby/Gems/2.0.0/gems/claide-0.9.1/lib/claide/command.rb:417:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help) Usage: $ pod COMMAND CocoaPods, the Cocoa library package manager. Commands: + cache Manipulate the

CocoaPods 错误解决--Attempt to read non existent folder

最近练习AutoLayout的时候用到UIView+AutoLayout 第三方 于是给项目上了CocoaPods 但是报了一下错误 "Attempt to read non existent folder "; 如下图; 网上搜索解决办法, 在终端输入:sudo -- sh -c "echo '117.18.237.29   ocsp.digicert.com' >> /etc/hosts"  ; 完美解决

CocoaPods 错误 target overrides the `OTHER_LDFLAGS`...

Xcode 升级到 6.0 后,更新 CocoaPods,出现了如下的警告 [!] The `Paopao [Debug]` target overrides the `PODS_ROOT` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation     - Use the `$(

最新版CocoaPods的安装流程

1.移除现有Ruby默认源 $gem sources --remove https://rubygems.org/ 2.使用新的源 $gem sources -a https://ruby.taobao.org/ 3.验证新源是否替换成功 $gem sources -l 4.安装CocoaPods (1) $sudo gem install cocoapods 备注:苹果系统升级 OS X EL Capitan 后改为 $sudo gem install -n /usr/local/bin co

[cocoapods]安装cocoapods

如果你的电脑已经安装过cocoapods了,但是不知道怎么用,请直接跳转到第8步 在安装之前,我们先来了解什么是cocoapods 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等.可能某个类库又用到其他类库,所以要使用它,必须得另外下载其他类库,而其他类库又用到其他类库,“子子孙孙无穷尽也”,这也许是比较特殊的情况.总之小编的意思就是,手动一个个去下载所需类库十分麻烦.另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重

iOS 最新版 CocoaPods 的安装流程 2016.5(转)

作者 奶瓶瓶??  http://www.cnblogs.com/zxs-19920314/p/4985476.html?utm_source=tuicool&utm_medium=referral 1.移除现有Ruby默认源 $gem sources --remove https://rubygems.org/ 2.使用新的源 $gem sources -a https://ruby.taobao.org/ 3.验证新源是否替换成功 $gem sources -l 4.安装CocoaPods

[转载] CocoaPods 的安装流程

原文地址:http://www.cnblogs.com/zxs-19920314/p/4985476.html?utm_source=tuicool&utm_medium=referral 1.移除现有Ruby默认源 $gem sources --remove https://rubygems.org/ 2.使用新的源 $gem sources -a https://ruby.taobao.org/ 3.验证新源是否替换成功 $gem sources -l 4.安装CocoaPods (1)$s