Stripe-ios: macOS Catalyst support (with Swift Package Manager and Xcode 12)

Created on 9 Sep 2019  路  6Comments  路  Source: stripe/stripe-ios

If you'd like to use Stripe in your Catalyst apps, like and subscribe to this issue. We'll prioritize based on how much feedback we receive.

Caveat: Apple Pay doesn't appear to be supported in Catalyst apps as of the latest Catalina beta.

fixed in master triaged

Most helpful comment

EDIT: Deleting my comment here, as the instructions were outdated. Catalyst should work without any additional effort when using Swift Package Manager and Xcode 12.

All 6 comments

EDIT: Deleting my comment here, as the instructions were outdated. Catalyst should work without any additional effort when using Swift Package Manager and Xcode 12.

EDIT: Deleting my comment here, as the instructions were outdated. Catalyst should work without any additional effort when using Swift Package Manager and Xcode 12.

Hi,

_Cocoapods_ merged this PR in Dec 19, it seems they already support _xcframeworks_ in version 1.9.0 (see, Cocoapods releases).

Add support for XCFrameworks using the vendored_frameworks Podspec DSL.
Eric Amorde
#9148

Any updates on this?

Best

What is the status on this. The branch you mentioned is version 17.x and we now have 19.x. The 19.x version does not come with a binary version x86_64 Mac, instead it contains x86_64 linked for the Simulator. (I installed via cocoapods)

The Error on version 19.x is:

Building for Mac Catalyst, but linking in object file built for iOS Simulator, file '/Users/[...]/FoodRunner/Pods/Stripe/InternalFrameworks/libStripe3DS2.a' for architecture x86_64

Workaround:

What works is using libStripe3DS2.a from your catalyst-preview branch in combination with the rest of the 19.x branch. It compiles, but I have not run the app (other libraries having problems with Catalyst also). Using the whole 17.x library from the catalyst-preview branch does not work at the moment (Xcode 11.6 on macOS 10.15.6), because of another compilation error.

We added Swift Package Manager support in #1644, and that (along with Xcode 12) is now our recommended method for building a Catalyst app. We'll release a formal version soon, but for now you should be able to add Stripe as an SPM package on the master branch.

For Cocoapods, we're still waiting on static .xcframework support, which should be coming in Cocoapods 1.10.

(And sorry @rocketnik, I just saw your message! Hopefully this addresses your question.)

This is out of beta in 20.0.0 with SPM, and will be in Cocoapods 1.10 once that's available.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

valheru7 picture valheru7  路  4Comments

billinghamj picture billinghamj  路  6Comments

sumitmundra picture sumitmundra  路  5Comments

imhugofonseca picture imhugofonseca  路  7Comments

chrismanderson picture chrismanderson  路  4Comments