Xcode hangs on Loading and iCloud Drive Desktop never finishes syncing (Possible slow statement / FileProvider)

Hi,

I'm experiencing a strange issue with iCloud Drive and Xcode on a Mac mini (Apple Silicon).

Environment

  • Mac mini (Apple Silicon)
  • macOS Tahoe 26.5.2
  • Xcode 26.5

Symptoms

  • Files in iCloud Drive Desktop stay at "Waiting to Update" for several days.
  • Cloud icons never disappear.
  • Moving projects from iCloud Drive Desktop to ~/Developer takes hours or never finishes.
  • Existing Xcode projects stored in iCloud Drive open as a white "Loading..." screen forever.
  • New Xcode projects work normally.
  • Projects already moved to ~/Developer (for example one project) open and build normally.

What I have already tried

  • Restart Mac
  • Updated to the latest macOS
  • Cleared Xcode caches (DerivedData, Archives, old simulators)
  • 132 GB free disk space
  • killall fileproviderd
  • killall bird
  • brctl download
  • brctl diagnose
  • fileproviderctl check -P

Logs After restarting fileproviderd, I continuously get messages like:

Possible slow statement on SELECT ...

scheduler not stable: jobs are running

fetch-metadata ... is busy

fileproviderd constantly uses around 70% CPU.

Also, fileproviderctl check -P never completes. It stops at:

"About to launch FPCK checks for 1 domains"

and stays there for more than 10 minutes.

Questions

  1. Has anyone experienced this with macOS Tahoe?
  2. Is this likely a CloudDocs/FileProvider database issue?
  3. Is there any safe way to repair the FileProvider database without risking iCloud data?
  4. Is there any way to identify or clear the stuck synchronization queue?

Any advice would be greatly appreciated.

Xcode hangs on Loading and iCloud Drive Desktop never finishes syncing (Possible slow statement / FileProvider)
 
 
Q