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:
NSFileManager.removeItemAtPath:
NSFileManager.createFileAtPath:
NSBundle.bundleIdentifier:
NSKeyedArchiver.archivedDataWithRootObject:
NSData.enumerateByteRangesUsingBlock:
And those calls appear to stem from the following SDK operations:
Disconnecting/connecting to/from a reader (SCPBbposBluetoothScanAdapter.onBTConnected:, SCPBbposBluetoothScanAdapter.onBTDisconnected:)
Reconnecting to a reader (SCPTerminal.reconnectOrAnnounceUnexpectedDisconnect...)
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.
👋 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.
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:
NSFileManager.removeItemAtPath:
NSFileManager.createFileAtPath:
NSBundle.bundleIdentifier:
NSKeyedArchiver.archivedDataWithRootObject:
NSData.enumerateByteRangesUsingBlock:
And those calls appear to stem from the following SDK operations:
SCPBbposBluetoothScanAdapter.onBTConnected:
,SCPBbposBluetoothScanAdapter.onBTDisconnected:
)SCPTerminal.reconnectOrAnnounceUnexpectedDisconnect...
)SCPLocationManager.refreshLocation:
)DP_MainController.getDeviceInfo_Internal:
)DP_MainController.cancelCheckCard:
)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.