stripe / stripe-terminal-ios

Stripe Terminal iOS SDK
https://stripe.com/docs/terminal/sdk/ios
Other
104 stars 65 forks source link

Warning: This code path does I/O on the main thread underneath that can lead to Ul responsiveness issues -[NSFileManager removeltemAtPath:error:] #296

Open JUSTINMKAUFMAN opened 7 months ago

JUSTINMKAUFMAN commented 7 months ago

Summary

Since updating to the latest Xcode v15.3 (15E204a), I see several runtime warnings related to this library doing I/O on the main thread.

While I can't look at the actual code that the stack trace references, it appears as though the proximate trigger for the warnings are the following methods:

And those calls appear to stem from the following SDK operations:

Code to reproduce

I don't think there is anything off-book about my use of the SDK (I'm guessing the source of these warnings has been around for a while and that Xcode only recently started surfacing them, though I could be wrong).

iOS version

17.1

Installation method

SPM

SDK version

3.4.0

Other information

I'm happy to provide anything else that may be useful! Thanks.

StripeTerminalTraceA StripeTerminalTraceB

bric-stripe commented 7 months ago

👋 thanks for the detailed report! Just wanted to ack that we're on it but can't commit to a release when we'll have these all fixed. Will update this issue with more info when we have it.