ios - 没有 :tag 的 cocoapod 获取最新代码的语法

标签 ios git cocoapods

我有一个存储在我的私有(private)存储库中的私有(private) cocoa pod 。

正确设置:

pod 'MyCocoaPod' , :git => 'https://<username>@github.com/account/repo.git', :tag => 'version'

这一直有效。

除非我在开​​发过程中更新 cocoa pod 版本,否则我必须使用它更新项目中的版本。

我如何将 pod 指定为声明,以便每当我运行 pod update 时它都会自行获取最新版本?

我在没有标签版本的情况下尝试过,但那行不通。

最佳答案

所有可用的选项都记录在案here 。根据该文档,您可能想要没有标签的相同内容:

pod 'MyCocoaPod' , :git => 'https://<username>@github.com/account/repo.git'

既然你已经说过这对你不起作用,你可以尝试使用 branch 关键字并指向 master:

pod 'MyCocoaPod' , :git => 'https://<username>@github.com/account/repo.git', :branch => 'master'

关于ios - 没有 :tag 的 cocoapod 获取最新代码的语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27895618/

相关文章:

ios - CocoaPod库项目创建

ios - 使用 cocoapods 安装 SSZipArchive

ios - Swift - 带有图像的 UIAlertController

iphone - 如何从网页获取数据到NSString

ios - 在 Swift 中获取表格内容的高度

iphone - 是否可以将隐藏字段添加到标注 MKMapView?

git - 为什么 'Save' 在 git stash 手册中不存在

gitignore 加载其他 gitignores

git - 使用 'pull'或 'merge' merge 本地分支?

ios - 设备上的 PureLayout : unrecognized selector sent to instance