cocoapods 安裝使用的對我們這些小白來說坑多,所以歡迎大神來補充,我也會持續(xù)更新遇到的問題:
1.
[!] Oh no, an error occurred.
Search for existing github issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Unable+to+read+plist+data+from+%60%22%2FUsers%2Fmac%2FDocuments%2FProjects%2FStatsTrack%2FStatsTrack.xcodeproj%2Fproject.pbxproj%22%27%3A+Unexpected+character+%2F+at+line+1&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
解決辦法:
terminal 中敲入如下三行:
cd ~/.cocoapods/repos
rm -rf master
pod setup
注:本解決辦法來自萬能的Stack Overflow (●′З`●) ??萌萌噠鏈接b( ̄▽ ̄)d
2.
報錯:
......
RPC failed; curl 18 transfer closed with outstanding read data remaining
這種錯誤一般出現(xiàn)在 pod setup 過程宏胯。
解決辦法:
xiuxinxiuxing$ git config --global http.postBuffer 524288000
xiuxinxiuxing$ git config --list
然后再執(zhí)行 pod setup
3.
報錯:
........
RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
解決方法:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
加粗部分“/Applications/Xcode.app/Contents/Developer”要視 Xcode 的安裝位置所決定陶夜,一般裝一個 Xcode 不會有什么問題。你可以在應用程序中找到 Xcode,右鍵顯示包內容,找到 Developer,把這個文件夾拖到終端中,就可以得到改地址。