braintree / braintree_ios

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

Fix dispatchSource #1344

Closed richherrera closed 3 months ago

richherrera commented 3 months ago

Summary of changes

Steps to reproduce the crash: Xcode 15.4 iOS 17.2 Simulator iPhone 14

This branch was created where the APIClient and PaymentClient are instantiated almost at the same time, based on a potential implementation by the merchants. The steps to reproduce the crash are to tokenize and then cancel (crash is very intermittent, so you'll need to run the application multiple times and follow the tokenization process repeatedly).

Screenshot 2024-06-25 at 9 09 32 a m

Update: This branch includes the changes from the branch that reproduces the crash, as well as the changes from this branch.

Checklist

Authors