How to continue to consume the Cloud Drive

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


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

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

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


Fatal error: Unexpectedly found nil while unwrapping an Optional value: file Automated/View2.swift, line 295

2020-01-03 21:24:05.435190-0500 [3132:149223] Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Users


Why now 1 year later is the ubiquityURL nil?


We believe the issue is "Unable to access iCloud Account"