[!] Oh no, an error occurred. Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?
q=Malformed+version+number+string+v1.0&type=Issues If none exists, create a ticket,
with the template displayed above,
on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.
md Don't forget to anonymize any private data! <code class="objectivec">解決問題方法:</code>
terminal 終端進行pod install 時出現這種問題 。根據error 內容基本可以判定是cocoapods版本或者ruby版本問題導致的。
所以只要降低或者升級最新版本即可解決。
命令行如下
pod repo remove master
pod repo add master https://github.com/CocoaPods/Specs.git
pod repo update
如果還不能解決:嘗試卸載當前pod版本,然后降低版本 (我用1.5.0成功)
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.5.0