The issue is related to presenting the UIAlertController in ActioSheet style
2020-05-13 10:25:16.219727+0200 Example[4740:91660] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIAlertController (<UIAlertController: 0x7fa281014c00>) of style UIAlertControllerStyleActionSheet from UINavigationController (<UINavigationController: 0x7fa28001c600>). 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.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23e3dcce __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50b3b9b2 objc_exception_throw + 48
2 UIKitCore 0x00007fff48479446 __66-[UIPopoverPresentationController presentationTransitionWillBegin]_block_invoke + 0
3 UIKitCore 0x00007fff48484124 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 2646
4 UIKitCore 0x00007fff4848197b __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.465 + 546
5 UIKitCore 0x00007fff48c2242e _runAfterCACommitDeferredBlocks + 352
6 UIKitCore 0x00007fff48c12bbc _cleanUpAfterCAFlushAndRunDeferredBlocks + 248
7 UIKitCore 0x00007fff48c43315 _afterCACommitHandler + 85
8 CoreFoundation 0x00007fff23da1067 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
9 CoreFoundation 0x00007fff23d9bb1e __CFRunLoopDoObservers + 430
10 CoreFoundation 0x00007fff23d9c06a __CFRunLoopRun + 1226
11 CoreFoundation 0x00007fff23d9b884 CFRunLoopRunSpecific + 404
12 GraphicsServices 0x00007fff38b5ac1a GSEventRunModal + 139
13 UIKitCore 0x00007fff48c19220 UIApplicationMain + 1605
14 Example 0x0000000107c2b38b main + 75
15 libdyld.dylib 0x00007fff519b910d start + 1
16 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
The issue is related to presenting the UIAlertController in ActioSheet style