把框架上传cocoapods遇到的一个问题
2016-07-22 22:13
302 查看
[!] 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>
相关文章推荐
- 对于拷贝构造函数和赋值构造函数的理解
- 拉取百度汉语的成语接龙脚本
- LeetCode - 208. Implement Trie (Prefix Tree)
- JAVA 中 Arrays.sort 中的排序的方法
- Post、Get方法拿到的是字符串
- bzoj2728理解了好久
- Gym 100114C (找循环节)
- Ubuntu 修改时区
- Python之MySql操作
- requireJS 用法
- HDU 5723(最小生成树+dfs)
- HDU 1241 DFS算法
- Update now: Macs and iPhones have a Stagefright-style bug!
- [LeetCode刷题笔记]Math数学类型题目(三)特殊的数字结构
- 欢迎使用CSDN-markdown编辑器
- Android学习笔记18:自定义Seekbar拖动条式样
- 数论·欧拉函数
- 【POJ3667】Hotel-线段树
- 24点计算器Ruby脚本
- moive纹理(待补充)