如何仅适用于某些方案的Cocoapods框架?

发布于 2025-01-25 02:10:20 字数 997 浏览 1 评论 0原文

我的应用程序有三个方案,对于我的每个分发频道:

”在此处输入图像描述”

  • 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:

enter image description here

  • 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:

enter image description here

As you can see, "Sparkle" is added to the target GreenBooks. I only have a single target:

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

征﹌骨岁月お 2025-02-01 02:10:20

找到答案。只需指定构建配置(配置)输入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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文