UIDocument not saving to file despite indicating success
问题 I'm trying to open, modify, and save a file in iCloud Drive using UIDocument . When I call save(to:for:completionHandler:) with the file location and using .forOverwriting for the UIDocumentSaveOperation , it completes with a status of success = true . However, the iCloud file (as seen in both desktop and iOS file browser) does not update, and when reopening the file, the changes are not shown. I've verified that contents(forType:) returns the correct (modified) file contents when saving.