有没有办法对可可豆使用拉取请求? [英] Is there a way to use a pull request with cocoapods?

查看:79
本文介绍了有没有办法对可可豆使用拉取请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

迅速3,许多cocoapods争先恐后地跟上每个beta带来的变化。有时,这些更改不会很快合并到分支中。在那种情况下,有没有办法使用分支的拉取请求?

With swift 3, many cocoapods have been scrambling to keep up with the changes each beta brings. Sometimes these changes aren't merged into a branch quickly. In those cases, is there a way to use a pull request of a branch?

例如:
https://github.com/MengTo/Spring/pull/187/commits/d791055bc43bba9af8124d2832c2d8cd95 b

推荐答案

您始终可以指定一个特定的提交或分支以将其Pod文件插入。

You can always specify a specific commit or branch to pull in with your pod file.

因此,如果您想从主存储库中获得swift3分支,它就很简单:

So, if you wanted the swift3 branch from the master repo, it'd be as simple as:

pod 'Spring', :git => 'https://github.com/MengTo/Spring.git', :branch => 'swift3'

但是,此拉取请求并非来自主存储库。我们需要弄清它的来源。

However, this pull request did not come from the master repo. We need to figure out where it came from.

在这种情况下,它来自此存储库,因此我们只需要更改它来自哪个存储库(该存储库中的分支名称实际上是相同的):

In this case, it came from this repo, so we just need to change what repository it came from (the branch name in that repo is actually the same):

pod 'Spring', :git => 'https://github.com/sammygutierrez/Spring.git', :branch => 'swift3'

这篇关于有没有办法对可可豆使用拉取请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆