如何仅适用于某些方案的Cocoapods框架?
我的应用程序有三个方案,对于我的每个分发频道:
- SAVINGS :App Store
- SAVINGS SETAPP :SetApp
- Savings Direct Direct :开发人员ID签名
的这三个分布,我只想将Sparkle Framework(用于更新应用程序)仅用于 Savings Direct 。
我的podfile看起来像这样:
如您所见,“ Sparkle”已添加到目标绿色书籍中。我只有一个目标:
我想做的是针对“储蓄直接”以外的其他方案,不包括Sparkle Framework;也就是说,根本不包括应用程序。
我该怎么做?
My app has three schemes, for each of my distribution channel:
- Savings: App Store
- Savings Setapp: Setapp
- Savings Direct: Developer ID signed distribution
Of these three, I want to include the Sparkle framework (for updating app) only for Savings Direct.
My Podfile looks like this:
As you can see, "Sparkle" is added to the target GreenBooks. I only have a single target:
What I want to do is for schemes other than "Savings Direct", exclude the Sparkle framework; that is, don't include in the app at all.
How do I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到答案。只需指定构建配置(
配置
)输入POD输入:https://guides.cocoapods.org/syntax/podfile.html#pod
Found the answer. Just need to specify build configuration (
configuration
) when inputting the Pod entry:https://guides.cocoapods.org/syntax/podfile.html#pod