cocoapods如何使用相同的repo.git多个私人仓库

时间:2016-11-03 00:53:21

标签: cocoapods

我有几个私人仓库,例如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内容,比如

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

1 个答案:

答案 0 :(得分:1)

只需将可可粉荚的豆荚规格文件添加到主repo文件夹中,然后更新豆荚规格源文件路径。

更多详细信息: 要创建可可豆,您需要两个步骤

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