最近使用cocoapod安裝YYText出現(xiàn)了幾個問題坞古,進行了一下匯總劫樟,自己做個記錄也為出現(xiàn)這種問題的朋友提供幫助。
錯誤1:RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54叠艳。
解決方案:
情況1:
確保xcode 是否正在運行或者打開狀態(tài)附较,請關(guān)閉xcode。然后再執(zhí)行pod update命令
情況2:
打印當(dāng)前xcode的路徑:
xcode-select --print-path
例如拒课,輸出xcode路徑:/Applications/Xcode.app/Contents/Developer
輸入一下命令:(如果有多個xcode版本路徑 請選擇其中一個)
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
如果您遇到下面的錯誤:
Error loading the plugin with path \\'/Library/Ruby/Gems/2.3.0/gems/cocoapods-plugins-0.3.1/lib/cocoapods_plugin.rb\\'.Errno::EACCES - Permission denied - /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-14
運行命令$ gem update --system即可
錯誤2:RPC failed; curl 18 transfer closed with outstanding read data remaining
解決方法
git config --global http.postBuffer 524288000
需要注意的是http.postBuffer 后,單位是b疏旨,524288000B也就500M左右