I use UIDocumentPickerViewControllerin my iOS application to allow users to open external files. I added the appropriate iCloud permissions to my application package, and most of the time everything works fine.
However, sometimes the document collector will fail, complaining that the application does not have this iCloud right. I experimentally discovered that when this happens, the value is [NSFileManager defaultManager].ubiquityIdentityTokenusually nil, so I protected my call with a document collector and checked ubiquityIdentityTokenas a temporary measure.
Can someone shed light on what can happen here, and what can I do to avoid this collapse? It seems almost completely out of my control.
source
share