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 理解
- 愉快地pod repo update之cocoapod升級遇到的坑
- sudo apt-get update | grep "Failed"apt-getAI
- 解決 sail composer update 時出現的 Update of laravel/sail failedAILaravel
- pod install / pod update 速度慢的終極解決方案
- 解決pod install update很慢的問題
- Windows Update與Microsoft UpdateWindowsROS
- for update和for update nowaitAI
- FOR UPDATE NOWAIT和 FOR UPDATEAI
- xcode9 pod update後友盟build不過XCodeUI
- for update 和 for update of 有什麼區別
- update restartREST
- mysql update join優化update in查詢效率MySql優化
- Oracle中的for update 和 for update nowaitOracleAI
- Failed to connect to raw.githubusercontent.com port 443AIGithub
- 輕量ORM-SqlRepoEx (四)INSERT、UPDATE、DELETE 語句ORMSQLdelete
- 關於 select ... for update 和 for update nowaitAI
- (轉)資料庫oracle for update of和for update區別資料庫Oracle
- SQL__UPDATESQL
- select for update
- windows 10 updateWindows
- MyBatis Batch Update Exception使用foreach批量update出錯MyBatisException
- INSTALL_FAILED_UPDATE_INCOMPATIBLE和INSTALL_FAILED_SHARED_USER_INCOMPATIBLEAI
- select for update nowait 與 select for update 區別AI
- Default Locking for INSERT, UPDATE, DELETE, and SELECT ... FOR UPDATE (351)delete
- Mac OSX系統homebrew update Fetching failed問題解決方案MacAI
- mongoengine.errors.OperationError: Update failed (BSON field ‘no_cursor_timeout‘ is an unknown fieldGoErrorAI
- Sql server with as update用法SQLServer
- For Update 加鎖分析
- MySQL InnoDB update流程MySql
- MongoDB更新(update)操作MongoDB
- websword-update-notificationWeb
- UPDATE操作和UNDO
- oracle select for updateOracle
- Disable Dynamic DNS updateDNS
- Master Data Management UpdateAST
- lua的update、lateupdate
- ubuntu apt update 提示 The repository ‘http://xxx Release‘ does not have a Release fileUbuntuAPTHTTP