UIManagedDocument appearing as a folder rather than as a document
Originator: | appsolutelyfun | ||
Number: | rdar://6806081 | Date Originated: | July 24, 2019 |
Status: | open | Resolved: | no |
Product: | UIManagedDocument | Product Version: | iOS 12.4 |
Classification: | UIKit | Reproducible: | yes |
Problem: in an app, instances of UIManagedDocument that are created for display in a UIDocumentBrowserViewController appear as folders rather than as documents. This problem occurs even though the app's Document Types and Exported UTIs are set up exactly as they appear in Apple's Particles app sample application demonstrating the UIDocumentBrowserViewController. What happens: the UIManagedDocument appears as a folder in the UIDocumentBrowserViewController, rather than as the document it is supposed to be. How I solved the problem: I included "com.apple.package" in the "Conforms to" field of the Exported UTIs in the target's info. This needed addition to the field is not, however, documented by Apple in its documentation for UIDocument/UIManagedDocument and UIDocumentBrowserViewController. Minimally, the "conforms to" field addition of com.apple.package should be noted in that particular documentation.
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!