cocoapods - cocoapods 如何使用同一个 repo.git 多个私有(private)仓库

标签 cocoapods

我有几个私有(private)仓库,例如A、B、C、D,远程git url是https://127.0.0.1/repo/repo.git 。我如何将 A、B、C、D 推送到同一个远程 git url( https://127.0.0.1/repo/repo.git ) ?然后本地git就像.cocoapods/repos/master/Specs内容一样,如

├── 规范
└── 一个
└── B
└── C
└── D
如果完成了,我该如何制作安装配置文件。

最佳答案

只需将 cocoa-pod 的 pod-spec 文件添加到主存储库文件夹中并更新 pod-spec 源文件路径即可。

更多详情: 要创建 cocoa pod ,您需要两个步骤

pod lib create POD_NAME 
///this command runs in terminal to create for you a library with example option and many other things

 pod lib lint POD_NAME.podspec 
/// validate your spec file, check syntax and your files.

您可以跳过第一个命令并手动创建 pod-spec 文件 ||从任何存储库复制它 然后更新它,将代码添加到 cocoa-pod 文件夹中,在 pod-spec 中设置 git repo 确保 git-repo 在主目录中有 pod-spec 文件

您将在此项目中找到带有演示应用程序的完整示例 https://github.com/abuzeid-ibrahim/DevPods

关于cocoapods - cocoapods 如何使用同一个 repo.git 多个私有(private)仓库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40392143/

相关文章:

firebase - Cocoapods Firebase pod 更新

syntax-highlighting - GitHub 原子 : How to apply a particular syntax highlighting to some files based on name

iOS/swift : "No such module..." for UI Testing

svg - Cocoapods 规范访问和所有权问题

cocoapods - podfile 安装时出错

cocoapods - `Podfile` 文件 : Unable to locate the executable `node` 无效

iphone - 如何向 Cocoapod 添加自定义字体?

swift - FB SDK 卡在 3.24 与 CocoaPods

react-native - 在 macOS Big sur 上安装 pod 失败

xcode - 在终端中的Podfile上使用Pod Install命令时出错