BRCloudDocsErrorDomain error 10 occurs when attempting to import/export from/to UIDocumentPickerViewController that is not backed by a file provider

Originator:davidz
Number:rdar://18202159 Date Originated:September 2, 2014
Status:Closed Resolved:Fixed in iOS 8.0 GM
Product:iOS Product Version:8.0b5
Classification: Reproducible:Sometimes
 
Summary:
Import/export to/from a document picker extension works, if the document picker extension is backed by a file provider extension. However, if there is no file provider, then often (but not always), import/export will fail with an alert view with the following:

Failed to make file available
The file could not be made available to the application. (The operation couldn't be completed. (BRCloudDocsErrorDomain error 10.))

Steps to Reproduce:
1. Create an app that contains both a document picker and file provider.
2. Use the same app or a different app to choose a file from the document picker.
3. Now delete the file provider completely from the app, and recompile and reinstall it.
4. Use the same app or a different app to choose a file from the document picker.

Expected Results:
2. The file is successfully chosen and passed back to the host app.
4. The file is successfully chosen and passed back to the host app.

Actual Results:
2. The file is successfully chosen and passed back to the host app.
4. The file is occasionally (but rarely) successfully chosen and passed back to the host app. Usually, a modal alert view is displayed:

Failed to make file available
The file could not be made available to the application. (The operation couldn't be completed. (BRCloudDocsErrorDomain error 10.))

Version:
iOS 8.0 (12A4345d)

Notes:


Configuration:
iPad and iPhone device and simulators

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!