最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】试用iOS中的时间轴控件:Timeline

iOS crifan 3059浏览 0评论

折腾:

[整理]iOS时间轴timeline

后,去试试

edekhayser/Timeline: Timeline like the Path iOS app

去用Carthage去安装:

Cartfile中添加:

github “robb/Cartography”

github “edekhayser/Timeline”

github “danielgindi/Charts” ~> 2.2.4

再去更新:

licrifandeMacBook-Pro:QorosSales crifan$ carthage update Timeline

*** Cloning Timeline

^C

但是一直下载不下来,很是怪异:

但是直接去

https://github.com/edekhayser/Timeline

下载发现只有400多KB,很小的,非常快就下载完了

-》推测是carthage有问题

-》有时候,在网络正常,可以正常快速访问github时,却也无法通过

update去fetch到对应的库

-》但是直接去fetch却可以:

licrifandeMacBook-Pro:QorosSales crifan$ carthage outdated

*** Fetching Timeline

No tagged versions found for github “edekhayser/Timeline”

licrifandeMacBook-Pro:QorosSales crifan$ carthage fetch Timeline

*** Fetching Timeline

A shell task (/usr/bin/env git fetch –prune –quiet Timeline refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*) failed with exit code 128:

fatal: ‘Timeline’ does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

licrifandeMacBook-Pro:QorosSales crifan$ carthage fetch edekhayser/Timeline

*** Fetching Timeline

A shell task (/usr/bin/env git fetch –prune –quiet edekhayser/Timeline refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*) failed with exit code 128:

fatal: ‘edekhayser/Timeline’ does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

licrifandeMacBook-Pro:QorosSales crifan$ carthage fetch “edekhayser/Timeline”

*** Fetching Timeline

A shell task (/usr/bin/env git fetch –prune –quiet edekhayser/Timeline refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*) failed with exit code 128:

fatal: ‘edekhayser/Timeline’ does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

-》发现fetch后面要跟完整的github的网址:

licrifandeMacBook-Pro:QorosSales crifan$ carthage fetch https://github.com/edekhayser/Timeline

*** Fetching Timeline

后来又多次尝试:

licrifandeMacBook-Pro:QorosSales crifan$ carthage update

*** Fetching Timeline

No tagged versions found for github “edekhayser/Timeline”

最终发现:

该库,没有tag:

-》意味着没有版本

-》意味着,carthage没法clone,checkout,编译。。。,没法用carthage去管理该库。。。

算了,不去管那个Timeline了

只保留:

github “robb/Cartography”

github “danielgindi/Charts” ~> 2.2.4

然后接着去:

[记录]用Cocoapods去管理第三方没有tag版本的库:Timeline

转载请注明:在路上 » 【记录】试用iOS中的时间轴控件:Timeline

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.178 seconds, using 22.13MB memory