pod install [!] ERROR: Parsing unable to continue

2019-09-18 05:41发布

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?

2条回答
一夜七次
2楼-- · 2019-09-18 05:50

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...

查看更多
聊天终结者
3楼-- · 2019-09-18 06:03

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.

查看更多
登录 后发表回答