本文介绍了pod install [!]错误:由于解析错误,解析无法继续:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当尝试安装pod时,向我显示此错误:
When try to install pod show me this error:
pod install
[!] ERROR: Parsing unable to continue due to parsing error:
contained in the file located at
/Users/rezakhalafi/.cocoapods/repos/master/CocoaPods-version.yml
\---
min: 1.0.0
last: 1.2.0.beta.3
prefix_lengths:
- 1
- 1
- 1
该如何解决?
推荐答案
首先我删除了 cocoapods :
gem list --local | grep cocoapods
gem uninstall cocoapods
gem uninstall cocoapods-core
gem uninstall cocoapods-downloader
并卸载宝石:
gem uninstall -aIx
并再次使用以下代码安装 Pod :
And install Pod just with this code again:
sudo gem install -n /usr/local/bin cocoapods
转到项目位置并 pod安装.
这对我有用.
这篇关于pod install [!]错误:由于解析错误,解析无法继续:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!