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

假装没事ソ 提交于 2019-12-12 02:17:09

问题


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

How to fix this?


回答1:


First i removed cocoapods:

gem list --local | grep cocoapods  
gem uninstall cocoapods  
gem uninstall cocoapods-core  
gem uninstall cocoapods-downloader 

And uninstall Gem:

gem uninstall -aIx 

And install Pod just with this code again:

sudo gem install -n /usr/local/bin cocoapods 

Go to project location and pod install.

This worked for me.




回答2:


you can try to run in console:

pod spec lint

this command is helpful in pointing out your problem more carefully and you can figure out what goes wrong pod...



来源:https://stackoverflow.com/questions/41635437/pod-install-error-parsing-unable-to-continue-due-to-parsing-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!