stripe / stripe-ios

Stripe iOS SDK
https://stripe.com
MIT License
2.05k stars 958 forks source link

Stripe pod does not compile on Xcode 11.6 #1632

Closed fesstheavenger closed 3 years ago

fesstheavenger commented 3 years ago

Summary

I use Stripe in my project. I updated Xcode to version 11.6 and now I am not able to build my project. Here is error:

Screen Shot 2020-08-26 at 14 12 29

Code to reproduce

iOS version

iOS 13.2

Installation method

Cocoapods

SDK version

Stripe 19.4.0

Other information

I used different versions of Stripe, tried to reinstall pods but I got the same result

amuresia commented 3 years ago

I believe I am facing a similar issue on Xcode 12 Beta 6.

ld: building for iOS Simulator, but linking in object file built for iOS, file '.../Pods/Stripe/InternalFrameworks/libStripe3DS2.a' for architecture arm64

I am using Stripe 19.4.0 as well I am able to build my app on the simulator and mobile devices but Xcode previews don't work because of the Stripe pod.

Would you like me to track in a different issue?

davidme-stripe commented 3 years ago

Thanks for filing, @fesstheavenger! This sounds a lot like #1525: Are you sure Xcode is building Stripe 19.4.0? If you check STPAPIClient.h (next to the STPAPIClient.m in the error from your screenshot), do you see static NSString *const STPSDKVersion = @"19.4.0";?

@amuresia, you're having a different problem: Swift Playgrounds on Xcode 12 won't work with the non-XCFramework version of our library, and Cocoapods won't support binary .xcframeworks until v1.10. You may want to try our Swift Package Manager branch for now: https://github.com/stripe/stripe-ios/pull/1633

davidme-stripe commented 3 years ago

Closing for now, please let me know if this keeps happening on 19.4.0.

tudor07 commented 3 years ago

@davidme-stripe I still have this issue in v19.4.1