So last night I managed to sneak off with my wife's phone, updated it from IOS 16* to IOS 17.5.1 and 'viola', same problem arose, so then I figured it had to be something with the IOS....or not.
I drilled down on the NSPredicate again and after some changes the following now works:
was: NSPredicate(format: "%K LIKE %@", NSMetadataItemFSNameKey, fileUrl.lastPathComponent)
is now: NSPredicate(format: "%K == %@", NSMetadataItemPathKey, fileUrl.relativePath)
--And that now works--
Thank you for the link, it gave me the incentive to tinker with the predicate again.
The above mentioned error is still present on the device, but I can for the foreseeable future ignore it.
And the 'startAccessingSecurityScopedResource()' now returns 'true'
Thank you for your assistance.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: