lubritto / flutter_share

A Flutter plugin for IOS and Android providing a simple way to share a message, link or local files.
MIT License
40 stars 45 forks source link

iOS Exception #14

Open grandleaf opened 4 years ago

grandleaf commented 4 years ago

[general] Connection to daemon was invalidated 2020-04-10 10:22:55.475056-0700 Runner[12846:792761] Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<UIPopoverPresentationController: 0x10b0c6540>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.' First throw call stack: (0x1b43b2164 0x1b40c6c1c 0x1b7da7088 0x1b7db1424 0x1b7daef3c 0x1b8505c10 0x1b84f513c 0x1b852688c 0x1b432cc54 0x1b43278e4 0x1b4327d84 0x1b4327660 0x1be738604 0x1b84fc15c 0x100bc8328 0x1b41a31ec) libc++abi.dylib: terminating with uncaught exception of type NSException

Code: await FlutterShare.share( title: 'Example share', text: 'Example share text', linkUrl: 'https://flutter.dev/', chooserTitle: 'Example Chooser Title', );

[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.3 19D76, locale en-US) • Flutter version 1.12.13+hotfix.9 at /Users/grandleaf/Development/flutter • Framework revision f139b11009 (11 days ago), 2020-03-30 13:57:30 -0700 • Engine revision af51afceb8 • Dart version 2.7.2

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/grandleaf/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 28.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.4, Build version 11E146 • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 43.0.1 • Dart plugin version 191.8593 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.44.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.9.1

[✓] Connected device (1 available) • xxxx iPad • xxxxxxxxxxxxxxxxxx • ios • iOS 13.4

neokree commented 4 years ago

This issue is the same as #8.

Please close this one and follow the other one