我有一个存储在我的私有(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/