moberwasserlechner / capacitor-filesharer

Capacitor plugin to download and share files for the Web, Android and iOS! Stop the war in Ukraine!
MIT License
82 stars 20 forks source link

Exception on iPad when presenting share dialog #3

Closed moberwasserlechner closed 5 years ago

moberwasserlechner commented 5 years ago
Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIActivityViewController (<UIActivityViewController: 0x7fc8120f2800>). In its current trait environment, the modalPresentationStyle of a UIActivityViewController with this style is UIModalPresentationPopover. You must provide location information for this popover through the view controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem.  If this information is not known when you present the view controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00000001115f41bb __exceptionPreprocess + 331
    1   libobjc.A.dylib                     0x000000010f83d735 objc_exception_throw + 48
    2   UIKitCore                           0x00000001171f9ed1 -[UIPopoverPresentationController presentationTransitionWillBegin] + 3168
    3   UIKitCore                           0x000000011720387b __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 2495
    4   UIKitCore                           0x0000000117200e6b __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 468
    5   UIKitCore                           0x00000001179110d2 _runAfterCACommitDeferredBlocks + 318
    6   UIKitCore                           0x00000001178ffb2c _cleanUpAfterCAFlushAndRunDeferredBlocks + 384
    7   UIKitCore                           0x000000011792eefc _afterCACommitHandler + 135
    8   CoreFoundation                      0x0000000111558c27 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    9   CoreFoundation                      0x00000001115530be __CFRunLoopDoObservers + 430
    10  CoreFoundation                      0x0000000111553751 __CFRunLoopRun + 1537
    11  CoreFoundation                      0x0000000111552e11 CFRunLoopRunSpecific + 625
    12  GraphicsServices                    0x0000000116b5c1dd GSEventRunModal + 62
    13  UIKitCore                           0x000000011790581d UIApplicationMain + 140
    14  App                                 0x000000010e8a1d60 main + 48
    15  libdyld.dylib                       0x0000000112f64575 start + 1
)