We are currently migrating our app to Mojave. As a productivity utility for information retrieval, if needs access to content in the user's Library dierectory.
Even if a user has security scoped bookkark for the user's home directory and has added the app to the security setting to grant full access to the local storage, QuickLook previews are not possible for emails and other content from the user's Library path.
The QuickLook preview did work in High Sierra and works in Mojave for documents in the user's document folder. It that a bug? dies someione know a solution? We use the QLPreviewView element the user interface of our app.
I found the following output in the Xcode log after I have selected a search result item. It's confusing, because the message doesn't relate to our app at all and even refers to another hard drive. It's not a log output of our app, that I have startet for debugging from Xcode.
[QL] file:///Volumes/Macintosh%20HD/Applications/OmniOutliner.localized/OmniOutliner.app/Contents/Library/QuickLook/OmniOutliner.qlgenerator/ has no identifier: ignoring [QL] file:///Volumes/Macintosh%20HD/Applications/Xcode.app/Contents/Library/QuickLook/DVTProvisioningProfileQuicklookGenerator.qlgenerator/ has no identifier: ignoring
I have the system for my development on Mojave from an external harddrive. Macintosh HD is the internal harddrive of my Macbook Pro. I'm not sure, whether this output is related to the issie. The log message doeesn't appear for a second time, if I click on another result item, that represents an email.
We check successfully the read access right of the file, that represents the email.
[[NSFileManager defaultManager] isReadableFileAtPath:_resultItem.path]