我在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版本。我可能会缺少什么?
答案 0 :(得分:1)
我怀疑Pod存储库可能已损坏。尝试rm -rf ~/.cocoapods
,然后重试。
pod install [!] ERROR: Parsing unable to continue due to parsing error:
还有一些其他可能的解决方案