Hello,
I am unable to use UIApplication.shared.open to open URL to my app's iCloud Drive folder that I am using to export files to.
I am using this method to get the URL:
url(forUbiquityContainerIdentifier: nil)?.appendingPathComponent("Documents")
But when testing this URL with UIApplication.shared.canOpenURL I am getting back false.
-canOpenURL: failed for URL: "file:///private/var/mobile/Library/Mobile%20Documents/iCloud~MyApp/Documents/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
Since my app's local document folder can be opened by prefixing the URL with shareddocuments:// I tried that for iCloud Drive URL, but didn't work either.
Is this even possible?