[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo
2018-03-02 10:55
1141 查看
来源:http://blog.csdn.net/liwei5bao/article/details/79420645
终端执行pod setup pod update 报错 -- [!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down
1. 如果你的Ruby运行环境大于2.0.0的话可以升级cocoapods解决,查看当前ruby终端命令ruby -v
可以参考:http://blog.csdn.net/potato512/article/details/62235282
1、更新gem:sudo gem update --system 2、删除gem源:gem sources --remove https://ruby.taobao.org/ 3、修改gem源:gem sources -a https://gems.ruby-china.org 4、查看gem源是否是最新的:gem sources -l 5、升级cocoapods:sudo gem install -n /usr/local/bin cocoapods --pre 6、查看升级后的cocoapods版本:pod --version
2.如果你的Ruby运行环境小于等于2.0.0不能使用了,那么就需要更新Ruby运行环境
可以参考:https://www.cnblogs.com/daguo/p/4097263.html
里的步骤一、步骤二 注意执行 $ rvm install 2.0.0 的时候安装最新版本,我这里安装的是2.4.0 安装完成后重新执行下
1. sudo gem update --system
2.sudo gem install -n /usr/local/bin cocoapods
3. pod setup
到这里我的cocoapods就可以正常使用了
终端执行pod setup pod update 报错 -- [!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down
1. 如果你的Ruby运行环境大于2.0.0的话可以升级cocoapods解决,查看当前ruby终端命令ruby -v
可以参考:http://blog.csdn.net/potato512/article/details/62235282
1、更新gem:sudo gem update --system 2、删除gem源:gem sources --remove https://ruby.taobao.org/ 3、修改gem源:gem sources -a https://gems.ruby-china.org 4、查看gem源是否是最新的:gem sources -l 5、升级cocoapods:sudo gem install -n /usr/local/bin cocoapods --pre 6、查看升级后的cocoapods版本:pod --version
2.如果你的Ruby运行环境小于等于2.0.0不能使用了,那么就需要更新Ruby运行环境
可以参考:https://www.cnblogs.com/daguo/p/4097263.html
里的步骤一、步骤二 注意执行 $ rvm install 2.0.0 的时候安装最新版本,我这里安装的是2.4.0 安装完成后重新执行下
1. sudo gem update --system
2.sudo gem install -n /usr/local/bin cocoapods
3. pod setup
到这里我的cocoapods就可以正常使用了
相关文章推荐
- pod update报错(Cocoapods: Failed to connect to GitHub to update the CocoaPods/Specs specs repo)报错解决方案
- [!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo
- pod update -- Failed to connect to GitHub to update the CocoaPods/Specs specs repo 问题
- CocoaPods问题: CocoaPods was not able to update the `master` repo.if it is a unexpected issue and
- CocoaPods 问题:cocoapods was not able to update the 'master' repo
- [转载]CocoaPods 问题:cocoapods was not able to update the 'master' repo
- cocoapods was not able to update the 'master' repo.if it is a unexpected issue and persists you can
- iOS - 解决Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named
- 解决 CocoaPods was not able to update the `master` repo
- cocoapods问题Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`
- iOS - 解决Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named
- Github出现failed to sync branch You might need to open a shell and debug the state of this repo的解决方法
- pod setup 报CocoaPods was not able to update the `master` repo 错误解决办法
- CocoaPods was not able to update the `master` repo....
- unable to access 'https://github.com/CocoaPods/Specs.git/': SSLRead() return error -9806
- 芒果iOS开发之Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.
- Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1
- Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`.
- 修复cocoapods - Unable to satisfy the following requirements