Open files created in iOS Documents folder

My application is writing a .plist config file to Documents folder (in Library/CoreSimulator/Devices/<ID>/data/Container/Data/Application/<ID>

The file then didn't show when using UIDocumentPickerViewController :

UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:@[@"public.text"] inMode:UIDocumentPickerModeOpen];
            documentPicker.delegate = self;
            documentPicker.modalPresentationStyle = UIModalPresentationFormSheet;
            [self presentViewController:documentPicker animated:YES completion:nil];

I also tested using "com.apple.property-list" as documents types filter (and UIDocumentPickerModeImport)
Accepted Answer
As far as I tried, UIDocumentPickerViewController shows the file saved in the Documents directory.
(For plist files, "com.apple.property-list" seems to be the right type specifier.)

Have you set Info.plist of your app properly?
You need to set both UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace to YES.

It finally worked since the previously created file was put on a new iCloud folder (however I don't See the local Documents folder and couldn't access to the applications's file (clicking "On my iPad" did nothing).

Now, after having added the two properties you suggested I can browse "On my ipad", and see application's name content (generated files).

There is a new non-blocking error :

DocumentManager] Failed to associate thumbnails for picked URL file:///Users/.../Library/Developer/CoreSimulator/Devices/.../data/Containers/Data/Application/.../Documents/perf.plist with the Inbox copy file:///Users/.../Library/Developer/CoreSimulator/Devices/.../data/Containers/Data/Application/.../tmp/com.Player-Inbox/perf.plist: Error Domain=QLThumbnail Code=2 "(null)" UserInfo={NSUnderlyingError=0x600003dad7d0 {Error Domain=GSLibraryErrorDomain Code=3 "Generation not found" UserInfo={NSDescription=Generation not found}}

There is a new non-blocking error :

DocumentManager] Failed to associate thumbnails for picked URL 
...

Some articles on the web say, that you can safely ignore it.
If you find something non-ignorable with this message, you should better start a new thread.
Open files created in iOS Documents folder
 
 
Q