reza_khalafi
reza_khalafi

Reputation: 6554

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

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?

Upvotes: 2

Views: 2839

Answers (3)

Ricardo
Ricardo

Reputation: 2311

Remove the Podfile.lock file and then do a fresh pod install

Upvotes: 4

reza_khalafi
reza_khalafi

Reputation: 6554

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.

Upvotes: 5

Alessio Campanelli
Alessio Campanelli

Reputation: 1030

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

Upvotes: 1

Related Questions