-
Notifications
You must be signed in to change notification settings - Fork 982
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
20.0.0 SPM build fails with undefined symbol __llvm_profile_runtime
#1651
Comments
Thank you for reporting this, and for the repro project! We'll try to look into it soon. The fix for Segment may not work for us: When I don't specify in Package.swift that we want to build a dynamic library, Xcode inexplicably copies libStripe3DS2.a into the distributed Stripe_Stripe.bundle in addition to linking it. I'm hoping this might be fixed in Xcode 12 GM. |
Same issue with XCode 12 AppStore release. However adding Stripe through Cocoapods works fine. |
I'm stuck between two SPM bugs:
I'll file these with SPM soon, and we'll keep looking for a workaround. |
@davidme-stripe was you able to find a workaround for this issue? |
@davidme-stripe Thanks for working on this! We're affected by this as well. Is there an SPM bug we could track for workarounds/fixes? |
What is the current recommendation from the Stripe iOS team? Should I use SPM? I'm working on an iOS13< app on Xcode 12. |
Based on the feedback we've received, my recommendation would be to hold off for a bit. I'll update the README. Our current solution is to ship a static We tried a few other options, but none of them are great:
|
It doesn't look like Xcode will be fixed in the near future, so I'm going to try option 2. If you build SPM against the |
Please try Stripe 20.1.0, it should fix this. Note that you'll have to remove and re-add Stripe from the |
Hi all! The Stripe3DS2 dependency is now distributed as source instead of a binary, which should allow everyone to remove all their framework hacks. Please update to version 21.2.0. |
Summary
I tried the new 20.0.0 release SPM support, adding the package to my project after removing it from the previous Carthage setup.
The build fails with this error:
I reported the exact same error in Segment some time ago, also testing SPM support.
Code to reproduce
Just make a new project, enable code coverage in the test scheme, and you get the issue.
Disabling code coverage completely solves the issue.
Sample project: stripe-bug.zip
iOS version
Any.
Installation method
SPM, through Xcode 12 beta 6.
SDK version
20.0.0
The text was updated successfully, but these errors were encountered: