iCloud Drive stuck on "Waiting to upload"

On both iOS and MacOS, documents in iCloud Drive are never uploaded. Text underneath each document just says "Waiting to Upload"

Already tried turning iCloud Drive off and on again

Any ideas on how to fix this?


Solution 1:

Can't speak for macOS, however iOS (iPhone, iPad) iCloud synchronization will be either very slow or just stuck when on a cellular connection. Connect your iOS device to a WiFi and it should sync up almost instantly. This is what resolved my issue with Numbers documents not syncing up on iPhone 6s with iOS 12.1.

Solution 2:

I have just had a similar issue and since my file was a pdf downloaded from a webpage I thought that this could be the issue. Having deleted the kMDItemWhereFroms extended attribute the file synced in seconds:

xattr -d com.apple.metadata:kMDItemWhereFroms my_file_name.pdf