braintree / braintree_ios

Braintree SDK for iOS
https://developer.paypal.com/braintree/docs/start/hello-client/ios/v5
MIT License
560 stars 294 forks source link

Build & Run function, but SwiftUI previews break app-wide if braintree is installed. #716

Closed RamblinWreck77 closed 3 years ago

RamblinWreck77 commented 3 years ago

-Braintree 5.4.3 -BraintreeDropIn 9.1.0 -Both Installed via SPM -Xcode 12.5.1 -M1/Apple Silicon

1) Make a sample SwiftUI project 2) Add the above 3) Try and run live preview 4) Observe error:

Screen Shot 2021-07-23 at 1 30 14 PM
RamblinWreck77 commented 3 years ago
Screen Shot 2021-07-23 at 1 32 50 PM

How can I get rid of CardinalMobile?

scannillo commented 3 years ago

👋 Hello. Thanks for opening this issue. Next time, DropIn issues can be filed here --> https://github.com/braintree/braintree-ios-drop-in.

We are still waiting on CardinalMobile to support M1 (arm64). Unfortunately for SPM integrations using DropIn, you don't have the granularity to be able to exclude the BraintreeThreeDSecure module from the application. In the meantime, you could run your development on a real device.

I am going to close this issue in favor of tracking with the existing issue here --> https://github.com/braintree/braintree_ios/issues/564.