I have a macOS app that synchronizes some files in the app's iCloud container, outside the Documents folder. Changes to these files are monitored with a NSMetadataQuery
using a search scope of NSMetadataQueryUbiquitousDataScope
. The NSMetadataQuery
instance uses an operation queue for notifications and I'm calling startQuery
on the instance's operation queue.
As of macOS 12.3, for a subset of my users, the NSMetadataQueryDidFinishGatheringNotification
notification is never sent after starting the query. The NSMetadataQueryDidStartGatheringNotification
and NSMetadataQueryGatheringProgressNotification
notifications are posted.
For those affected who have multiple Macs, each of their Macs seems to be affected by this, as if it is a problem specific to the iCloud container for my app, for that user.
I'm unable to reproduce the issue on my personal machine.
Has anyone else noticed this behavior since macOS 12.3 was released?