安装cocoapods时,pod setup出现这个错误

_慢半拍 2016-05-13 10:42:08
安装cocoapods时,pod setup出现这个错误,各种搜索无果[/b]
出错:pod setup的时候,命令过后如下:
Setting up CocoaPods master repo
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

Cloning into 'master'...
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

各种搜索无果啊,头皮都抓烂了,
...全文
11722 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
引用 17 楼 zbfhandsome 的回复:
建议更换索引镜像之后再初始化 pod repo remove master pod repo add master https://gitcafe.com/akuandev/Specs.git pod setup 前几天刚刚重新装过,是可以的
请问更换索引镜像失败是怎么回事。 pod repo add master https://gitcafe.com/akuandev/Specs.git 再pod setup还是连接的github。
笋干番茄汤 2016-07-05
  • 打赏
  • 举报
回复
建议更换索引镜像之后再初始化 pod repo remove master pod repo add master https://gitcafe.com/akuandev/Specs.git pod setup 前几天刚刚重新装过,是可以的
ArthurShuai 2016-07-01
  • 打赏
  • 举报
回复
我也碰到过,我是新建一个工程,然后终端打开项目文件,在终端中输入pod init ,然后直接输入pod install ,就莫名其妙安装好了。
qq_35474308 2016-06-30
  • 打赏
  • 举报
回复
删除pod 具体附上简书 :http://www.jianshu.com/p/ffc0a67d6d75
笋干番茄汤 2016-06-24
  • 打赏
  • 举报
回复
前面的都没问题吗,我这边是更新过系统之后cocoapods不能用了,然后重装了一边,cocoapods的镜像地址好像换过了,你百度下应该有的,记得就只是http加了个s,然后你说的pod setup这个步骤我直接跳过了,因为它是在有点慢,不然你也试试,现在我的cocoapods又回来了,不过现在用这个插件写podfile时要加target的名字了,知道的就这么多了.
forestml2008 2016-06-21
  • 打赏
  • 举报
回复
先执行以下命令,可能执行的时间比较长,需要耐心等待,这一步成功了基本就行了: pod setup 详细的可以看这里http://www.jianshu.com/p/ffc0a67d6d75
imbahong 2016-06-13
  • 打赏
  • 举报
回复
楼主解决没!
qq_35299661 2016-06-13
  • 打赏
  • 举报
回复
楼主解决了么,求指导!!!
qq_29556091 2016-06-06
  • 打赏
  • 举报
回复
楼主或者有遇到过这种情况的同志 解决了么?
Tiramisu_LM 2016-05-30
  • 打赏
  • 举报
回复
如果试了很多次都不行的话,可以试试在插件管理工具中安装cocoaPods,近期亲测有效,希望可以帮到你
tommychangz 2016-05-29
  • 打赏
  • 举报
回复
我现在也是同样的问题error: RPC failed; curl 56 SSLRead() return error -9806 各种无解.
qq_15875979 2016-05-26
  • 打赏
  • 举报
回复
同求解决办法,有限的中文资源翻遍了,也没找着解决办法。安装CocoaPods的前几步都是正确的,但是pod setup不成功。
FGNevermore 2016-05-23
  • 打赏
  • 举报
回复
楼主解决了吗,我也遇到一样的问题,不知道哪里的事情
  • 打赏
  • 举报
回复
rm -fr ~/.cocoapods/repos/master 重装一下就好了 链接】使用cocoapodsinstall时报RPCfailedresult26http200错误 http://www.v2ex.com/t/121633
Perfect_lan 2016-05-17
  • 打赏
  • 举报
回复
问题解决了嘛 我也面临着同样的问题 求指教
ravatar0423 2016-05-14
  • 打赏
  • 举报
回复
CocoaPods是放在Git上面的,所以参考如下方案 : http://stackoverflow.com/questions/15240815/git-fatal-the-remote-end-hung-up-unexpectedly
引用
Cause : The default file post size for Git has been exceeded. Solution : Navigate to repo. Run the following command to increase the buffer to 500MB after navigating to the repository: git config http.postBuffer 524288000
作者gltwy,代码LTScrollView-master,LTScrollView-master能够无限滚动,可以设定视图出现的数量,总数量,实现无限滚动。通过协议方法和数据源定制自己的滚动视图。 Demo文件路径以及说明 LTScrollView / Example : 为 Swift 使用示例. LTScrollView / OCExample : 为 OC 使用示例. 支持的子View为UIScrollView、UICollectionView、UITableView. CocoaPods安装 安装CocoaPods 使用以下命令: $ gem install cocoapods Podfile 在你的 Podfile中添加LTScrollView source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' target 'TargetName' do #注意此处需要添加use_frameworks! use_frameworks! pod 'LTScrollView', '~> 0.1.7' end 然后,使用以下命令安装 $ pod install 提示错误 [!] Unable to find a specification for LTScrollView 解决办法: $ pod repo remove master $ pod setup Swift使用说明 Swift.LTSimple使用说明 创建LTSimpleManager实例对象 @objc public init(frame: CGRect, viewControllers: [UIViewController], titles: [String], currentViewController:UIViewController, layout: LTLayout) 设置headerView @objc public func configHeaderView(_ handle: (() -> UIView?)?) 子控制器中glt_scrollView进行赋值 self.glt_scrollView = self.tableView(self.scrollView / self.collectionView) 更多使用说明请参考Demo(LTScrollView / Example) Swift.LTAdvanced使用说明 创建LTAdvancedManager实例对象、并设置headerView @objc public init(frame: CGRect, viewControllers: [UIViewController], titles: [String], currentViewController:UIViewController, layout: LTLayout, headerViewHandle handle: () -> UIView) 子控制器中glt_scrollView进行赋值 self.glt_scrollView = self.tableView(self.scrollView / self.collectionView) 更多使用说明请参考Demo(LTScrollView / Example) OC使用说明 OC.LTSimple使用说明 创建LTSimpleManager实例对象 [[LTSimpleManager alloc] initWithFrame:frame viewControllers:self.viewControllers titles:self.titles currentViewController:self layout:self.layout] 设置headerView [self.managerView configHeaderView:^UIView * _Nullable{ }] 子控制器中glt_scrollView进行赋值 self.glt_scrollView = self.tableView(self.scrollView / self.collectionView) 更多使用说明请参考Demo(LTScrollView / OCExample) OC.LTAdvanced使用说明 创建LTAdvancedManager实例对象、并设置headerView [[LTAdvancedManager alloc] initWithFrame:frame viewControllers:self.viewControllers titles:self.titles

29,028

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧