重新安装xcode cocoapods出现 Could not find a valid gem 'cocoapods' (>= 0) in any repository
来源:互联网 发布:spss统计软件最新版 编辑:程序博客网 时间:2024/06/03 09:01
今天公司新配了电脑,于是重新安装homebrew和cocoapods 但是在弄好前面的步骤开始在shell里面输入安装命令的时候
我输入:sudo gem install cocoapods等了一会儿 出现的不是安装成功的提示,而是
Could not find a valid gem 'cocoapods' (>= 0) in any repository的报错 之前在自己的电脑上安装的时候虽然也经历了波折 但是似乎没有出现这样的问题 百度了一下 说是command line tools没有安装,这时候我跟大多数人一样 到Xcode ->preferences ->downloads 里面去找这个command line tools,但是啥影子也没看见,就以为肯定是Xcode默认装好了 但是!!! 如果执行下这个命令:Xcode-select --install 就会发现 弹出一个窗问我们是否要安装命令行工具 到这里 我才恍然大悟,原来之前跑命令行跑来跑去,搞了半天,还是由于自己没有安装好命令行工具 于是果断下载安装
安装完了后 再次sudo gem install cocoapods 发现还是会报同样的错误 百度了下 看到了这个哥们的错误总结,说可能是权限的问题,需要进去到root下面,使用sudo -i或者sudo su进入到root之后再 执行sudo gem install cocoapods 到这里命令行工具就安装好了 command+q退出一下 再重新进入Shell里面 执行sudo gem install cocoapods 会发现出来一大段
Fetching: nap-0.8.0.gem (100%)ung: nap-0.8.0.gem
Successfully installed nap-0.8.0
Fetching: thread_safe-0.3.5.gem (100%)
Successfully installed thread_safe-0.3.5
Fetching: tzinfo-1.2.2.gem (100%)
bSuccessfully installed tzinfo-1.2.2
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: activesupport-4.2.4.gem (100%)
Successfully installed activesupport-4.2.4
Fetching: escape-0.0.4.gem (100%)
Successfully installed escape-0.0.4
Fetching: colored-1.2.gem (100%)
Successfully installed colored-1.2
Fetching: molinillo-0.3.1.gem (100%)
Successfully installed molinillo-0.3.1
Fetching: netrc-0.7.8.gem (100%)
Successfully installed netrc-0.7.8
Fetching: cocoapods-trunk-0.6.4.gem (100%)
Successfully installed cocoapods-trunk-0.6.4
Fetching: cocoapods-try-0.4.5.gem (100%)
Successfully installed cocoapods-try-0.4.5
Fetching: cocoapods-stats-0.5.3.gem (100%)
Successfully installed cocoapods-stats-0.5.3
Fetching: cocoapods-plugins-0.4.2.gem (100%)
Successfully installed cocoapods-plugins-0.4.2
Fetching: cocoapods-downloader-0.9.3.gem (100%)
Successfully installed cocoapods-downloader-0.9.3
Fetching: claide-0.9.1.gem (100%)
Successfully installed claide-0.9.1
Fetching: xcodeproj-0.26.3.gem (100%)
Successfully installed xcodeproj-0.26.3
等执行完毕,我们输入pod --version查看一下pod的版本 会看到这样
pod --version
0.38.2
- 重新安装xcode cocoapods出现 Could not find a valid gem 'cocoapods' (>= 0) in any repository
- 重新安装xcode cocoapods出现 Could not find a valid gem 'cocoapods' (>= 0) in any repository
- ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository
- 关于“Could not find a valid gem 'bundler' (>= 0) in any repository” 解决办法。
- 遇到Could not find a valid gem 'compass' (>= 0) in any repository
- Could not find a valid gem 'compass' (>= 0) in any repository compass安装失败解决方案
- Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from h
- ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download dat
- Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from h
- 安装cocoapods时已经替换成淘宝镜像依然无法成功:ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
- pod install报错:could not find a valid gem 'cocoapods'
- 解决“could not find gem 'turn <>=0 ' in any of the gem sources listed in your gemfile”错误
- Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in you r Gemfile
- Could not find gem 'sqlite3 (>= 0) x64-mingw32' in any of the gem sources listed in your Gemfile
- Could not find a valid gem 'rails' (>= 0), here is why
- ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from
- 出现“Xcode could not find a valid private-key/...”一种解决办法
- cocoapods更新失败fatal: Not a git repository (or any of the parent directories): .git
- Android的WebView使用之GET请求
- 压缩算法核心代码Java
- 木乃伊迷宫
- java的变量类型
- 初学HTML+CSS练习搭建个人博客笔记
- 重新安装xcode cocoapods出现 Could not find a valid gem 'cocoapods' (>= 0) in any repository
- springmvc+mybatis+shiro MD5加密匹配&登录失败超次数锁定帐号
- jekyll bootstrap搭建github blog
- View是否可见状态判断
- Java静态内部类和非静态内部类
- Python实现点阵字体读取与转换
- S3C2440 Linux驱动移植——AT24C02(EEPROM)驱动
- mysql-proxy实现读写分离
- VSCode中预览markdown和修改预览样式