'How to include a CocoaPods framework only for certain schemes?
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?
Solution 1:[1]
Found the answer. Just need to specify build configuration (configuration) when inputting the Pod entry:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Eric |



