Attempt to map database failed

This looks like a refresh of an old question. I'm using iOS 15 beta 7 and have presented a UIActivityViewController from a SwiftUI app. I get a ton of these errors when trying to share a two-item list containing String and UISimpleTextPrintFormatter.

[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:]}

It looks as if the API is checking for entitlements I haven't requested, but I am not trying to share images. I just want to share text as plaintext or a nicely formatted printable attributed string.

Answered by DTS Engineer in 686200022

I get a ton of these errors

So is there an actual problem here? Other than the scary looking log messages? Because, if not, I’d treat these as log noise. Specifically:

  • The fourth log entry is coming from Icon Services

  • The others are coming from Launch Services

Neither of these are APIs on iOS.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Could it be that    nicely formatted printable attributed string.     requires images entitlement ? Could you try without the nice formatting ?

Accepted Answer

I get a ton of these errors

So is there an actual problem here? Other than the scary looking log messages? Because, if not, I’d treat these as log noise. Specifically:

  • The fourth log entry is coming from Icon Services

  • The others are coming from Launch Services

Neither of these are APIs on iOS.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I put together a tiny demo using UIActivityViewController sharing a String. This also gets the "log noise" as Quinn so politely puts it. (My own choice term is not suitable for this forum.) I was surprised since I hadn't seen these message a day before, but maybe it correlates with beta 7.

My own choice term is not suitable for this forum.

*laugh*

Well, there’s no doubt that you find these log entries “particularly irksome”, so you know what to do! Make sure to attach your tiny demo app.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Attempt to map database failed
 
 
Q