Hello,
We are experiencing crashing from the Square Reader SDK on some of our customers iPads, but not on others, even if they are running the exact same version of iOS (most are now at 17.5.1). Generally speaking, the crashes occur when the iPad is in a Square Stand, and the Reader SDK is trying to connect to the stand for the first time. The Square payment display appears, with the top bar is orange/yellow, and after a few seconds, the app crashes.
The version of the Square Reader SDK we are using is 1.7.2. We have put into UISupportedExternalAccessoryProtocols the strings indicated in the documentation:
<key>UISupportedExternalAccessoryProtocols</key>
<array>
<string>com.squareup.s020</string>
<string>com.squareup.s025</string>
<string>com.squareup.s089</string>
<string>com.squareup.protocol.stand</string>
</array>
The crash information in Xcode shows two different error stacks, one with the error at:
UIKitCore -[UIResponder doesNotRecognizeSelector]
CoreFoundation forwarding
CoreFoundation _CF_forwarding_prep_0
UIKitCore -[UIApplication _run]
UIKitCore UIApplicationMain
and the other is:
libswiftCore.dylib assertionFailure(:_:file:line:flags:)
SquareReaderSDK 0x104a48000
SquareReaderSDK 0x104a48000
SquareReaderSDK 0x104a48000
UIKitCore -[UIApplication _run]
UIKitCore UIApplicationMain
We cannot determine the reason for these crashes. Any assistance would be appreciated.
Thanks,
Jim