cocoapods 安装使用的对我们这些小白来说坑多,所以欢迎大神来补充,我也会持续更新遇到的问题:
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
这种错误一般出现在 pod setup 过程。
解决办法:
xiuxinxiuxing$ git config --global http.postBuffer 524288000
xiuxinxiuxing$ git config --list
然后再执行 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,把这个文件夹拖到终端中,就可以得到改地址。