Square Reader SDK v1.7.2 Crashing

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

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Troubleshoot In-App Payments SDK Problems
Reader SDK
Build on iOS: In-App Payments SDK

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

What’s your application ID, location_id of the seller and the time of the crash? :slightly_smiling_face:

Hi Bryan,

Thank you for your reply. There is more than one location, this is happening to multiple customers. Here are two location ids where the crashes have taken place: 102QDPQE58CGQ and 1YNQDF23H2R4G.

Here is our application_id: sq0idp-pq_rYNyzYwZLGHDNKuQVEw

Thanks,
Jim

What’s the error message that’s being returned from the crash? :slightly_smiling_face:

There is no error message visible to the user. The app simply crashes.

The most information we have been able to gather is the stack traces in Xcode:

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

Do you have any other suggestions?

Thanks,
Jim

The team is still looking into this. We do see the crashes on our end. :slightly_smiling_face: