Stripe identity verification SDK crashes for iPads with the following message:
NSGenericException · Your application has presented a UIAlertController (<UIAlertController: 0x10d0a7000>) of style UIAlertControllerStyleActionSheet from StripeIdentity.IdentityFlowNavigationController (<StripeIdentity.IdentityFlowNavigationController: 0x10d08da00>). The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem. If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.
It's been 1 year, the issue is still present. The fix is literally 1 line of code and is carefully described by Apple inside the crash report itself. w t f?
Summary
Stripe identity verification SDK crashes for iPads with the following message:
Call stack:
iOS version
iOS 16. Most notably, only iPad devices are affected.
Installation method
SPM
SDK version
23.9.1