I’m building a read-only diagnostic for iCloud Drive on an Apple silicon Mac running macOS 26.6.2. Given a local file URL or a File Provider item identifier, I’d like to determine whether any sync operations are queued, running, or waiting to retry for that file.
From a normal user session, I can resolve an iCloud Drive file to its File Provider item and domain identifiers. However, calling NSFileProviderManager.getDomainsWithCompletionHandler returns NSFileProviderErrorDomain error -2001 (providerNotFound). I can also correlate some job registration and completion events in the unified log by item identifier, but I haven’t established whether those logs cover every operation for the item.
Is there a supported API or diagnostic tool that returns a complete point-in-time list of queued, running, and retrying operations for a specified iCloud Drive file? If so, what permissions are required, and how can the caller distinguish a complete result with zero operations from an incomplete, delayed, or unavailable result?
If a complete list is unavailable, what per-file state can a third-party diagnostic reliably report?