尝试安装pod时显示此错误:
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
如何解决这个问题?
答案 0 :(得分:4)
首先我删除了 cocoapods :
gem list --local | grep cocoapods
gem uninstall cocoapods
gem uninstall cocoapods-core
gem uninstall cocoapods-downloader
然后卸载 Gem :
gem uninstall -aIx
再次使用此代码安装 Pod :
sudo gem install -n /usr/local/bin cocoapods
转到项目位置并 pod install 。
这对我有用。
答案 1 :(得分:1)
您可以尝试在控制台中运行:
pod spec lint
这个命令有助于更仔细地指出你的问题,你可以弄清楚出了什么问题。