braintree / braintree_ios

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

ConfigurationLoader.getConfig() Causes Thread 15: EXC_BAD_ACCESS (code=1, address=0x4) Crash on Xcode 16 Beta 5 #1387

Closed RGG-jayoung closed 2 weeks ago

RGG-jayoung commented 1 month ago

Braintree SDK Version

6.23.1

Environment

Both

Xcode Version

Xcode 16 Beta 5

OS Version & Device

iOS 18.0, iOS 18.1

Integration type

Swfit Package Manager

Development Processor

Apple Silicon (M-series chips)

Describe the bug

When compiling with Xcode 16 beta 5 targeting iOS 15, 16, 17, 18 the ConfigurationLoader.getConfig() causes a crash, referencing withCheckedThrowingContinuation with a Thread 15: EXC_BAD_ACCESS (code=1, address=0x4) error.

Braintree Crash Configuration Loader

To reproduce

  1. Add Braintree via SPM
  2. Follow Braintree docs for standard set up with BTAPIClient(authorization: clientToken) being called.
  3. It is unclear when the ConfigurationLoader.getConfig() actually gets called, but after navigating through a few screens, it will be called, and after a considerable delay (10s++) the app will crash

Expected behavior

Braintree SDK should load without delay and not crash.

Screenshots

Braintree Crash Configuration Loader image
jaxdesmarais commented 1 month ago

Hey @RGG-jayoung -

I believe this is a duplicate of #1382 - are you able to test out the branch in this comment and let us know the result: https://github.com/braintree/braintree_ios/issues/1382#issuecomment-2276561429.

jaxdesmarais commented 1 month ago

@RGG-jayoung - Please let me know if version 6.23.3 resolves this issue

jaxdesmarais commented 2 weeks ago

Closing due to inactivity, but please do let us know if version 6.23.3 did not resolve the issue and I would be happy to reopen this.