[!] 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>
<code class="objectivec">所有项目的Podspec文件都托管在https:<span class="hljs-comment" style="color: rgb(136, 0, 0);">//github.com/CocoaPods/Specs,</span> 第一次执行pod setup时,CocoaPods会将这些podspec索引文件更新到本地的~/<span class="hljs-variable" style="color: rgb(102, 0, 102);">.cocoapods</span>目录下, 这个索引文件比较大,所以第一次更新时非常慢. 友好人士在国内的服务器建立了Cocoapods索引库的镜像, 所以执行索引跟新操作时候会快很多.具体操作方法如下: $ pod repo remove master $ pod repo add master https:<span class="hljs-comment" style="color: rgb(136, 0, 0);">//gitcafe.com/akuandev/Specs.git</span> $ pod repo update 这是使用gitcafe上的镜像,将以上代码中的 https:<span class="hljs-comment" style="color: rgb(136, 0, 0);">//gitcafe.com/akuandev/Specs.git </span> 替换成 http:<span class="hljs-comment" style="color: rgb(136, 0, 0);">//git.oschina.net/akuandev/Specs.git 即可使用oschina上的镜像。</span></code>