pod update -- Failed to connect to GitHub to update the CocoaPods/Specs specs repo
終端執行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
但是在修改gem源時會報錯
Error fetching https://gems.ruby-china.org:
Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8118 (Connection refused - connect(2) for "localhost" port 8118) (https://gems.ruby-china.org/specs.4.8.gz)
根據提示考慮到應該是自己使用ss代理的問題
使用:env|grep -i proxy檢視自己的代理設定
http_proxy=http://localhost:8118
https_proxy=http://localhost:8118
使用:unset https_proxy
unset http_proxy
後 env|grep -i proxy檢視自己的代理設定為空
再修改gem源:gem sources -a https://gems.ruby-china.org成功。
相關文章
- pod repo update 理解
- CocoaPods pod install/pod update更新慢
- 正確的使用pod install 和 pod update - CocoaPods
- SNWeChatSDK update Cocoapods支援
- 愉快地pod repo update之cocoapod升級遇到的坑
- pod install 與 pod update
- 解決 sail composer update 時出現的 Update of laravel/sail failedAILaravel
- sudo apt-get update | grep "Failed"apt-getAI
- 解決pod install update很慢的問題
- pod install / pod update 速度慢的終極解決方案
- Oracle中的for update 和 for update nowaitOracleAI
- brew update
- select for update
- mongoengine.errors.OperationError: Update failed (BSON field ‘no_cursor_timeout‘ is an unknown fieldGoErrorAI
- Mac OSX系統homebrew update Fetching failed問題解決方案MacAI
- SQL__UPDATESQL
- windows 10 updateWindows
- udgrade rubygems-update
- WPF DispatcherTimer update periodically
- Sql server with as update用法SQLServer
- lua的update、lateupdate
- For Update 加鎖分析
- Leetcode: 627 - UPDATE, SET, ifLeetCode
- MySQL InnoDB update流程MySql
- cocos2dx update scheduleUpdate to update or schedule(schedule_selector(fun),dt)
- 解決:Failed to download metadata for repo ‘base‘AI
- brew update /usr/local is not writable
- Update Bit與 Is_Updated
- MybatisPlus中的update操作MyBatis
- win10如何開啟update_win10update在哪裡開啟Win10
- on duplicate key update簡單使用
- oracle update left join查詢Oracle
- Mysql update誤操作恢復MySql
- Window Application has "update" key wordsAPP
- SAP MM The Table MBEWH Update Logic
- 【SQL】10 SQL UPDATE 語句SQL
- update-alternatives 使用詳解
- ON UPDATE CURRENT_TIMESTAMP請慎用