????????????????????? ? ? ? ?? ? 最近集成cocoaPods遇到的一些問題及解決流程
??? 提示brew not found,首先安裝或升級brew失敗的話可能需要執(zhí)行 $ gem update --system ,然后執(zhí)行$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 關(guān)聯(lián)Xcode和Command Line Tools。安裝brew可能會出現(xiàn)? RPC failed; curl 18 transfer closed with outstanding read data remaining? 錯誤提示, 可以先后執(zhí)行$ sudo chown -R apple:staff * 輸入密碼? $ brew doctor 提示 ?Your system is ready to brew. 再次安裝brew應(yīng)該就可以了(實在不行就卸載重裝)。
??? 提示 rvm not found,需要安裝 rvm,
??? 提示ruby版本過低,用rvm安裝最新版ruby,安裝過程中報錯:?There has been an error fetching the ruby interpreter. Halting the installation. ,在網(wǎng)上翻了一下找到了適用于我解決問題的方法:? 瀏覽器打開?Checking fallback: https://ftp.ruby-lang.org/pub/ruby/2.5/ruby-2.5.0.tar.bz2 中的網(wǎng)址,將文件下載下來再次 rvm install 2.5.0。ruby安裝成功以后就是 $?sudo gem install -n /usr/local/bin cocoapods,$ pod setup等。
??? setup過程中如果出現(xiàn)? error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54錯誤,就執(zhí)行 $ git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master 命令應(yīng)該就可以了。?