由于解析错误,CocoaPods无法继续

时间:2019-05-05 16:47:42

标签: swift xcode cocoapods

我在Xcode中创建了一个空的Swift项目。然后:

cd <project directory>
gem install cocoapods
pod init
pod install

哪个出现以下错误:

[!] ERROR:  Parsing unable to continue due to parsing error:  contained in the file located at /Users/<user>/.cocoapods/repos/master/CocoaPods-version.yml

我知道CocoaPods的早期版本(<1.5)中的a similar issue,但是我使用的是1.6版本。我可能会缺少什么?

1 个答案:

答案 0 :(得分:1)

我怀疑Pod存储库可能已损坏。尝试rm -rf ~/.cocoapods,然后重试。

pod install [!] ERROR: Parsing unable to continue due to parsing error:

还有一些其他可能的解决方案