依赖于另一个ios框架项目的podspec [英] podspec with dependency to another ios framework project

查看:191
本文介绍了依赖于另一个ios框架项目的podspec的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个敏捷农作与其他开发人员共享(命名为B)。该框架使用的是我最近与 objective-c (让它命名为A)创建的另一个 ios框架项目。 / p>

现在,我想与可可豆荚共享框架B。我想知道如何在 podspec 文件中链接这两个项目。我是否需要与 pod 共享它们?还是有其他共享项目B的解决方案?

解决方案

您有2个选择:
1.分发两个pods,并在您的podspec文件中使用spec.dependency(请参见Woof的答案)
2.将A源文件直接添加到B的源文件中


I had developed a swift farmework to share with other developers(Lets name it B). This framework is using another ios framework project that I created recently with objective-c (lets name it A).

Now, I want to share framework B with cocoa pod. I wondering how should I link these two project in the podspec file. Does I need to share both of them with pod? or is there any other solution that just share project B?

解决方案

You have 2 options: 1. Distribute both pods and use spec.dependency in your podspec file (see Woof's answer) 2. Add A source files directly to B's source files

这篇关于依赖于另一个ios框架项目的podspec的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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