Summary
When including any Stripe packages in a module, we are presented with errors like these:
'StripePaymentsUI' is missing a dependency on 'StripePayments' because dependency scan of Swift module 'StripePaymentsUI' discovered a dependency on 'StripePayments'
'StripePayments' is missing a dependency on 'StripeCore' because dependency scan of Swift module 'StripePayments' discovered a dependency on 'StripeCore'
...
The project setup is modular in nature where we define a StripePaymentCore module to handle shared logic used by other modules.
Code to reproduce
xcodegen setup:
StripePaymentCore:
dependencies:
- package: stripe-ios-spm
products:
- Stripe
- StripePayments
- StripePaymentsUI
iOS version
Xcode 26
Installation method
SPM
SDK version
24.25.0
Other information