plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

share_plus: errors on any share : ios / iPhone

Open espbee opened this issue 3 years ago • 4 comments

System info

Platform the Issue occurs on: ios / iPhone Plugin name: share_plus Plugin version: 3.0.4

On the first run, there is a long lag before the share window pops up and although the share is successful, there is a messy error console log. The error continues each time though the lag seems to improve. The lag itself does not happen on release builds, only debug.

[ShareSheet] connection invalidated
[default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] Attempt to map database failed: permission was denied. This attempt will not be retried.
[db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)

Steps to Reproduce

Just run the simplest example of the share_plus plugin, like so:



import 'package:flutter/material.dart';
import 'package:share_plus/share_plus.dart';


void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  void _share() {
    Share.share('check out my website https://example.com');
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
          child: GestureDetector(
              onTap: () => _share(),
              child: const Text('share')
          ),
      ),
    );
  }
}
Console log:
[ShareSheet] connection invalidated
[default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] Attempt to map database failed: permission was denied. This attempt will not be retried.
[db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
[default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] Attempt to map database failed: permission was denied. This attempt will not be retried.
[db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
[LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionReusableView that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <_UIActivityContentFooterView: 0x11cd113b0; baseClass = UICollectionReusableView; frame = (20 586.333; 388 52); layer = <CALayer: 0x28222fe80>>
<CATransformLayer: 0x282220900> - changing property backgroundColor in transform-only layer, will have no effect

The latter portion of flutter run -- verbose:




[   +4 ms] executing: rsync -av --delete /Users/MY_NAME/dev/share_err/build/ios/Debug-iphoneos/Runner.app /Users/MY_NAME/dev/share_err/build/ios/iphoneos
[  +16 ms] building file list ... done
           Runner.app/
           Runner.app/Info.plist
           Runner.app/PkgInfo
           Runner.app/Runner
           Runner.app/Frameworks/share_plus.framework/
           Runner.app/Frameworks/share_plus.framework/Info.plist
           Runner.app/Frameworks/share_plus.framework/share_plus
           Runner.app/Frameworks/share_plus.framework/_CodeSignature/
           Runner.app/Frameworks/share_plus.framework/_CodeSignature/CodeResources
           Runner.app/Frameworks/url_launcher_ios.framework/
           Runner.app/Frameworks/url_launcher_ios.framework/Info.plist
           Runner.app/Frameworks/url_launcher_ios.framework/url_launcher_ios
           Runner.app/Frameworks/url_launcher_ios.framework/_CodeSignature/
           Runner.app/Frameworks/url_launcher_ios.framework/_CodeSignature/CodeResources
           Runner.app/_CodeSignature/CodeResources

           sent 338638 bytes  received 270 bytes  677816.00 bytes/sec
           total size is 83803461  speedup is 247.27
[   +2 ms] Installing and launching...
[        ] Debugging is enabled, connecting to observatory
[   +4 ms] executing: script -t 0 /dev/null /Users/MY_NAME/dev/flutter/bin/cache/artifacts/ios-deploy/ios-deploy --id 00008101-000C095A14E0001E --bundle build/ios/iphoneos/Runner.app --app_deltas build/ios/app-delta --debug --no-wifi --args --enable-dart-profiling
--disable-service-auth-codes --enable-checked-mode --verify-entry-points
[  +14 ms] [....] Waiting for iOS device to be connected
[ +140 ms] [....] Using 00008101-000C095A14E0001E (D54pAP, iPhone 12 Pro Max, iphoneos, arm64e, 15.3, 19D50) a.k.a. 'iPhone'.
[        ] ------ Install phase ------
[        ] [  0%] Found 00008101-000C095A14E0001E (D54pAP, iPhone 12 Pro Max, iphoneos, arm64e, 15.3, 19D50) a.k.a. 'iPhone' connected through USB, beginning install
[ +137 ms] [  5%] TransferringPackage
[        ] [  5%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/META-INF/ to device
[        ] [  6%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/META-INF/ to device
[        ] [  6%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/META-INF/com.apple.ZipMetadata.plist to device
[        ] [  7%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/META-INF/com.apple.ZipMetadata.plist to device
[        ] [  7%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/ to device
[        ] [  8%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/ to device
[        ] [  8%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/ to device
[        ] [  9%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/ to device
[        ] [  9%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/_CodeSignature/ to device
[        ] [ 10%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/_CodeSignature/ to device
[        ] [ 10%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/_CodeSignature/CodeResources to device
[        ] [ 11%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/_CodeSignature/CodeResources to device
[        ] [ 12%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/_CodeSignature/CodeResources to device
[        ] [ 12%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Info.plist to device
[        ] [ 13%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Info.plist to device
[        ] [ 13%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Runner to device
[        ] [ 20%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Runner to device
[        ] [ 21%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Runner to device
[        ] [ 21%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/com.apple.deltainstallcommands.com.example.shareErr to device
[        ] [ 22%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/com.apple.deltainstallcommands.com.example.shareErr to device
[        ] [ 22%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/ to device
[        ] [ 23%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/ to device
[        ] [ 23%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/ to device
[        ] [ 24%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/ to device
[        ] [ 24%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/_CodeSignature/ to device
[        ] [ 25%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/_CodeSignature/ to device
[        ] [ 25%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/_CodeSignature/CodeResources to device
[        ] [ 26%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/_CodeSignature/CodeResources to device
[        ] [ 26%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/url_launcher_ios to device
[   +1 ms] [ 33%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/url_launcher_ios to device
[        ] [ 34%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/url_launcher_ios to device
[        ] [ 34%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/Info.plist to device
[        ] [ 35%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/url_launcher_ios.framework/Info.plist to device
[        ] [ 35%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/ to device
[        ] [ 36%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/ to device
[        ] [ 36%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/_CodeSignature/ to device
[        ] [ 37%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/_CodeSignature/ to device
[        ] [ 37%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/_CodeSignature/CodeResources to device
[        ] [ 38%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/_CodeSignature/CodeResources to device
[        ] [ 38%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/share_plus to device
[   +1 ms] [ 45%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/share_plus to device
[        ] [ 46%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/share_plus to device
[        ] [ 46%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/Info.plist to device
[        ] [ 47%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/Frameworks/share_plus.framework/Info.plist to device
[        ] [ 47%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/PkgInfo to device
[        ] [ 48%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/Payload/Runner.app/PkgInfo to device
[        ] [ 48%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/ManifestCache.plist to device
[        ] [ 49%] Copying /Users/MY_NAME/dev/share_err/build/ios/app-delta/Runner.app.chSY8D/Runner.app_sparse.ipa/ManifestCache.plist to device
[  +89 ms] [ 52%] CreatingStagingDirectory
[        ] [ 57%] ExtractingPackage
[        ] [ 60%] InspectingPackage
[  +41 ms] [ 60%] TakingInstallLock
[  +76 ms] [ 65%] PreflightingApplication
[   +1 ms] [ 67%] PatchingApplication
[ +300 ms] [ 67%] InstallingEmbeddedProfile
[   +8 ms] [ 70%] VerifyingApplication
[ +116 ms] [ 75%] CreatingContainer
[   +2 ms] [ 80%] InstallingApplication
[   +5 ms] [ 85%] PostflightingApplication
[   +1 ms] [ 90%] SandboxingApplication
[   +8 ms] [ 95%] GeneratingApplicationMap
[+2240 ms] [100%] Installed package build/ios/iphoneos/Runner.app
[  +51 ms] ------ Debug phase ------
[        ] Starting debug of 00008101-000C095A14E0001E (D54pAP, iPhone 12 Pro Max, iphoneos, arm64e, 15.3, 19D50) a.k.a. 'iPhone' connected through USB...
[+1005 ms] [  0%] Looking up developer disk image
[  +14 ms] [ 95%] Developer disk image mounted successfully
[  +18 ms] Symbol Path: /Users/MY_NAME/Library/Developer/Xcode/iOS DeviceSupport/15.3 (19D50) arm64e/Symbols
[ +315 ms] [100%] Connecting to remote debug server
[        ] -------------------------
[  +33 ms] (lldb) command source -s 0 '/tmp/6BA99117-3E42-416F-9951-EB47198AC8B0/fruitstrap-lldb-prep-cmds-00008101_000C095A14E0001E'
[        ] Executing commands in '/tmp/6BA99117-3E42-416F-9951-EB47198AC8B0/fruitstrap-lldb-prep-cmds-00008101_000C095A14E0001E'.
[        ] (lldb)     platform select remote-'ios' --sysroot '/Users/MY_NAME/Library/Developer/Xcode/iOS DeviceSupport/15.3 (19D50) arm64e/Symbols'
[        ]   Platform: remote-ios
[        ]  Connected: no
[        ]   SDK Path: "/Users/MY_NAME/Library/Developer/Xcode/iOS DeviceSupport/15.3 (19D50) arm64e/Symbols"
[        ] (lldb)     target create "/Users/MY_NAME/dev/share_err/build/ios/iphoneos/Runner.app"
[ +179 ms] Current executable set to '/Users/MY_NAME/dev/share_err/build/ios/iphoneos/Runner.app' (arm64).
[        ] (lldb)     script fruitstrap_device_app="/private/var/containers/Bundle/Application/3776D414-9686-4EDC-87AC-2F400997DB07/Runner.app"
[ +230 ms] (lldb)     script fruitstrap_connect_url="connect://127.0.0.1:61546"
[        ] (lldb)     script fruitstrap_output_path=""
[        ] (lldb)     script fruitstrap_error_path=""
[        ] (lldb)     target modules search-paths add /usr "/Users/MY_NAME/Library/Developer/Xcode/iOS DeviceSupport/15.3 (19D50) arm64e/Symbols/usr" /System "/Users/MY_NAME/Library/Developer/Xcode/iOS DeviceSupport/15.3 (19D50) arm64e/Symbols/System"
"/private/var/containers/Bundle/Application/3776D414-9686-4EDC-87AC-2F400997DB07" "/Users/MY_NAME/dev/share_err/build/ios/iphoneos" "/var/containers/Bundle/Application/3776D414-9686-4EDC-87AC-2F400997DB07" "/Users/MY_NAME/dev/share_err/build/ios/iphoneos" /Developer
"/Users/MY_NAME/Library/Developer/Xcode/iOS DeviceSupport/15.3 (19D50) arm64e/Symbols/Developer"
[   +3 ms] (lldb)     command script import "/tmp/6BA99117-3E42-416F-9951-EB47198AC8B0/fruitstrap_00008101_000C095A14E0001E.py"
[   +3 ms] (lldb)     command script add -f fruitstrap_00008101_000C095A14E0001E.connect_command connect
[        ] (lldb)     command script add -s asynchronous -f fruitstrap_00008101_000C095A14E0001E.run_command run
[        ] (lldb)     command script add -s asynchronous -f fruitstrap_00008101_000C095A14E0001E.autoexit_command autoexit
[        ] (lldb)     command script add -s asynchronous -f fruitstrap_00008101_000C095A14E0001E.safequit_command safequit
[        ] (lldb)     connect
[  +26 ms] (lldb)     run
[ +116 ms] success
[        ] Application launched on the device. Waiting for observatory url.
[+30002 ms] iOS Observatory not discovered after 30 seconds. This is taking much longer than expected...
[+22430 ms] Observatory URL on device: http://127.0.0.1:56781/
[   +6 ms] Attempting to forward device port 56781 to host port 61603
[        ] executing: /Users/MY_NAME/dev/flutter/bin/cache/artifacts/usbmuxd/iproxy 61603:56781 --udid 00008101-000C095A14E0001E --debug
[+1008 ms] Forwarded port ForwardedPort HOST:61603 to DEVICE:56781
[        ] Forwarded host port 61603 to device port 56781 for Observatory
[   +2 ms] Installing and launching... (completed in 58.7s)
[   +2 ms] Caching compiled dill
[  +74 ms] Connecting to service protocol: http://127.0.0.1:61603/
[ +155 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:61603/.
[  +82 ms] DDS is listening at http://127.0.0.1:61608/MeClcHBUVBg=/.
[  +61 ms] Successfully connected to service protocol: http://127.0.0.1:61603/
[  +31 ms] DevFS: Creating new filesystem on the device (null)
[  +30 ms] DevFS: Created new filesystem on the device (file:///private/var/mobile/Containers/Data/Application/03CE094B-134B-471F-B190-3EC12DEF5B0B/tmp/share_erruFIAHS/share_err/)
[   +2 ms] Updating assets
[  +80 ms] Syncing files to device iPhone...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] Processing bundle.
[   +1 ms] <- recompile file:///Users/MY_NAME/dev/share_err/.dart_tool/flutter_build/generated_main.dart 8a08f874-5310-46fa-a85c-2df5b11a677a
[        ] <- 8a08f874-5310-46fa-a85c-2df5b11a677a
[   +1 ms] Bundle processing done.
[ +116 ms] Updating files.
[        ] DevFS: Sync finished
[        ] Syncing files to device iPhone... (completed in 121ms)
[        ] Synced 0.0MB.
[   +1 ms] <- accept
[   +3 ms] Connected to _flutterView/0x14401da20.
[   +2 ms] Flutter run key commands.


Flutter doctor output
@> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.0, on macOS 12.1 21C52 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
[✓] VS Code (version 1.58.2)
[✓] Connected device (2 available)
    ! Error: iPhone is busy: Fetching debug symbols for iPhone. Xcode will continue when iPhone is finished. (code -10)
[✓] HTTP Host Availability

• No issues found!

espbee avatar Feb 10 '22 17:02 espbee

Can't share a single word on iOS #701

ttb-inc avatar Feb 11 '22 06:02 ttb-inc

I am getting this error too. any solution for this?

Shilpa26v avatar May 24 '22 11:05 Shilpa26v

@Shilpa26v and @ttb-inc I'm just seeing these. Are either if you having this problem in release builds? I closed the issue because it was only an issue during debug runs and it seemed not to arise (and I read something to that effect someplace on here) when it mattered.

Are you ok in release or no?

espbee avatar Jun 21 '22 16:06 espbee

@espbee I'm experiencing these error logs in debug as well. I tried release mode, and no logs. I'm not sure if the log level is different in that situation, though.

For me, it doesn't stop a user from saving/sharing a file. The logs were mostly just concerning (and maybe representing issues I'm not aware of that a user might notice).

EnduringBeta avatar Jul 13 '22 00:07 EnduringBeta

This is the error I am facing, when trying to share a video file from the asset/ folder

[Default] Task Runner[25582]/1#4 LF=0 couldn't find entitlement CopresenceCore.Entitlement.publicAPI error nil
[default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] Attempt to map database failed: permission was denied. This attempt will not be retried.
[db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
[default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] Attempt to map database failed: permission was denied. This attempt will not be retried.
[db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
[default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
[LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionReusableView that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <_UIActivityContentFooterView: 0x15542aca0; baseClass = UICollectionReusableView; frame = (20 246; 374 52); layer = <CALayer: 0x282175140>>
[PPT] Error creating the CFMessagePort needed to communicate with PPT.
[tcp] tcp_input [C16.1:3] flags=[R] seq=3713588757, ack=0, win=0 state=LAST_ACK rcv_nxt=3713588757, snd_una=1242763826
2
[tcp] tcp_input [C16.1:3] flags=[R] seq=3713588757, ack=0, win=0 state=CLOSED rcv_nxt=3713588757, snd_una=1242763826

Code:

    Share.shareFiles(['assets/tutorial/video.mp4'],
        text: translate("will not work", args: {
          "link": shortLink.shortUrl.toString(),
        }));

simplenotezy avatar Sep 05 '22 22:09 simplenotezy

    Share.shareFiles(['assets/tutorial/video.mp4'],
        text: translate("will not work", args: {
          "link": shortLink.shortUrl.toString(),
        }));

You are trying to share a file contained in the project assets. Those files are not available to the underlying platform, instead you need to do some extra work to access them: https://docs.flutter.dev/development/ui/assets-and-images#loading-flutter-assets-in-ios

miquelbeltran avatar Sep 06 '22 09:09 miquelbeltran

Regarding the original issue.

I am currently testing the share_plus example on a device (not simulator), and observed the following:

  • Sharing files works.
  • Something seems broken with text sharing: The share dialog appears but it is empty, only AirDrop appears and no other apps.

Will take a look further on why is this happening.

miquelbeltran avatar Sep 06 '22 09:09 miquelbeltran

One thing that seems to be wrong is this line here:

https://github.com/fluttercommunity/plus_plugins/blob/640bd92d4ba2d1df70ad969fd29f2442587d3a41/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m#L351

The code is trying to encode a text string as a URL, this causes that the share sheet appears empty. Currently changing it and the text sharing works again.

Adding a subject doesn't seem to work either, at least not on gmail app on iPhone (I'll have to try with the iOS mail app still).

miquelbeltran avatar Sep 06 '22 10:09 miquelbeltran

Released 4.1.0 of share_plus with a fix for iOS.

Please see the PR #1055 for more information.

If you still face issues, please open a new Issue with version 4.1.0 of the plugin.

miquelbeltran avatar Sep 06 '22 13:09 miquelbeltran

I'm Still experiencing this issue on v6.3.0

brad007 avatar Dec 29 '22 10:12 brad007