I have a small text file which I would like to share via ShareLink with watchOS. If I try to share the text file via Mail oder iMessage the recipient only receives the message without the attachment. The same code works without problems on iOS. Is the is watchOS bug?
ShareLink doesn't attach file on watchOS
I have the same problem and found no answer so far. Did you find anything by now?
My problem was, that my file was empty. So it wasn't attached. But maybe it also doesn't work with a normal file. I found another solution afterwards.
What solution did you find Patrick? for me a file with content isn't shared either
I get such warnings when trying to share with ShareLink for URL item that points to a local file. I select Mail in sharing options. The last one is most interesting.
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, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler, _LSLine=67}
Attempt to map database failed: permission was denied. This attempt will not be retried.
Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler, _LSLine=67}
Could not connect to database in -[LSApplicationRestrictionsManager _LSResolveIdentifiers:]_block_invoke: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler, _LSLine=67}; resolving identifiers will only consult ManagedConfiguration
Cannot attach item to mail composer without preview metadata.