错误:在任何存储库中找不到有效的gem'cocoapods'(> = 0) [英] ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository

查看:317
本文介绍了错误:在任何存储库中找不到有效的gem'cocoapods'(> = 0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行一个AWS Cognito服务项目,其中我已经添加了适用于iOS的AWS开发工具包,但是在添加并尝试运行它之后,它向我显示了图像中以下所示的错误

i am trying to run a AWS Cognito service project in which i have added the AWS SDK for iOS but after adding it and trying to run it it shows me the below shown error in the image

错误:在任何存储库中找不到有效的gem'cocoapods'(> = 0)

当我在Internet上对其进行爬网并找到一些cocoapods安装说明时,因此在尝试后出现了其他类似下面的错误

when i crawl it on internet and found some cocoapods install instructions so after trying that i got some other error like below

aparajita:Objective-C Aparajita$ sudo gem install cocoapods
Password:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777
ERROR:  Could not find a valid gem 'cocoapods' (>= 0) in any repository
aparajita:Objective-C Aparajita$ gem install cocoapods
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777
ERROR:  Could not find a valid gem 'cocoapods' (>= 0) in any repository
aparajita:Objective-C Aparajita$ gem source -a http://rubygems.org/
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777
https://rubygems.org is recommended for security over http://rubygems.org/

Do you want to add this insecure source? [yn]  y
Error fetching http://rubygems.org/:
no such name (http://rubygems.org/specs.4.8.gz)
aparajita:Objective-C Aparajita$ gem source -a rubygems.org
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777
rubygems.org is not a URI
aparajita:Objective-C Aparajita$ gem source -r rubygems.org
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777
source rubygems.org not present in cache

我已经尝试了所有方法,但仍然高于从控制台获得的日志.如果有人对此有任何解决方案,请告诉我,谢谢

i have tried it all but still above log i got from the console . if any one have any solution on this please let me know, thanks

推荐答案

我遇到了同样的问题,我通过使用以下命令发出解决了该问题

I am facing the same problem and I resolved it by issuing using the following command

sudo gem install cocoapods --source http://rubygems.org

这篇关于错误:在任何存储库中找不到有效的gem'cocoapods'(> = 0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆