把框架上传cocoapods遇到的一个问题

[!] 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>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值