依赖于另一个ios框架项目的podspec [英] podspec with dependency to another ios framework project
问题描述
我开发了一个敏捷农作
与其他开发人员共享(命名为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屋!