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)
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)