Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Command SwiftVerifyEmittedModuleInterface failed with a nonzero exit code when importing stripe-ios packages to my framework #4342

Open
HaominZhao opened this issue Dec 8, 2024 · 3 comments
Labels
kind:bug triaged Issue has been reviewed by Stripe and is being tracked internally

Comments

@HaominZhao
Copy link

HaominZhao commented Dec 8, 2024

Summary

When I add stripe-ios-sdk packages to my framework using SWIFT package manager and later import them. I got build error:

Command SwiftVerifyEmittedModuleInterface failed with a nonzero exit code
and
:0: error: missing required module 'Stripe3DS2'

But after setting Build Libraries for Distribution to NO of my framework the error was gone.

Why is that?

Code to reproduce

  1. Create any swift dynamic framework
  2. Add all stripe-ios packages to framework using SWIFT package manager
  3. Import any package e.g. Import StripePaymentSheet

iOS version

ios18.1

Installation method

SDK version

24.0.0

Other information

@HaominZhao HaominZhao changed the title [BUG] SwiftVerifyEmittedModuleInterface [BUG] Command SwiftVerifyEmittedModuleInterface failed with a nonzero exit code when importing stripe-ios packages to my framework Dec 8, 2024
@joyceqin-stripe
Copy link
Collaborator

Hi @HaominZhao, from my understanding, the "Build Libraries for Distribution" build setting in Xcode controls whether your framework is compiled in a way that allows it to be distributed as a binary framework. This requires that all its dependencies also support this distribution model, and the Stripe SDK does not. Let me know if you have any other questions!

@joyceqin-stripe joyceqin-stripe added the triaged Issue has been reviewed by Stripe and is being tracked internally label Dec 13, 2024
@HaominZhao
Copy link
Author

Does your team have any plan to support this?

@joyceqin-stripe
Copy link
Collaborator

Hi @HaominZhao, while we don't plan on building this at this time, we revisit our roadmap periodically and will keep this in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug triaged Issue has been reviewed by Stripe and is being tracked internally
Projects
None yet
Development

No branches or pull requests

2 participants