I have a working project the uses a pod file for some weeks now. When I learned that some of my pods have update I tried to \'pod install\' on got this weird error
You can try it like this. pod spec lint --sources='https://git.oschina.net/yourname/jqcpodspec,https://github.com/CocoaPods/Specs' --allow-warnings --use-libraries
if your spec pass validation, then pod repo push JQCPodSpec FMCommonModelLib.podspec --sources='https://git.oschina.net/yourname/jqcpodspec,https://github.com/CocoaPods/Specs' --allow-warnings --use-libraries
If you landed here on or after January 30th 2014, there is a break in CocoaPods causing this. Please read the related blog post found here: http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/
or do:
pod repo remove master
pod setup
Wow this one has been a real pain and everyone seems to have a different solution. For me this solution worked on multiple machines/environments on a few occasions:
psych
that is causing the problem.sudo gem uninstall psych
sudo gem install psych -v 2.0.0
There's a lengthy conversation over on the CococaPods repo about the issue and this fix.
You need to fix permissions and files owner
$ sudo chown -R user ~/Library/Caches/CocoaPods
$ sudo chown -R user ./Pods
$ sudo chown -R user ./Podfile.lock
$ sudo chmod -R 777 ./Pods
$ pod update/setup