Unable to access clout account

Write to iCloud Drive has stopped working on all apps.

*** 1/3/2020 No longer works We believe the issue is "Unable to access iCloud Account, can't find Cloud URL" ***


A device update has made the URL to the iCloud Drive nil. How can we recover from this?


Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Users/ on line 295


Exp.

294 let containerURL = FileManager.default.url(forUbiquityContainerIdentifier: nil)

295 let documentDirectoryURL = containerURL!.appendingPathComponent("Documents")

296 let documentURL = documentDirectoryURL.appendingPathComponent("myFile.txt")

Unable to access clout account
 
 
Q