NSMetadataQuery fail in iOS17.2 with Error Domain=com.apple.accounts Code=7 ACErrorPermissionDenied
NSMetadataQuery fail in iOS17.2
Add a Comment
NSMetadataQuery fail in iOS17.2 with Error Domain=com.apple.accounts Code=7 ACErrorPermissionDenied
solved: in iOS17.2 adding observer forKeyPath "metadataQuery.results" will cause that NSMetadataQuery keeps Gathering and never notifies NSMetadataQueryDidFinishGatheringNotification
That is strange, i am not observing results but i still get this error sometimes. Since iOS 17 was introduced, NSMetadataQuery started acting up really badly. Sometimes never completing gathering other times it gathers but the updates notifications are never posted. And then there are times that it works just fine.
i get users of our app complaining but have no idea how to fix it or what to tell them.