In an app that saves data as an archive (NSKeyedArchiver), I am allowing users to export the .archive file to have a backup. Users can then re-import those files to retrieve backed up data.
Is there a way to restrict UIDocumentPickerViewController to only allow import of those .archive files? I tried using kUTTypeArchive as the only allowed type, but it doesn't appear to be the same kind of "archive", so I've used "public.item" while I look for a solution.
Running the mdls command on the file gives this file type: dyn.ah62d4rv4ge80c6xdrby1q3k
PS: If exporting and importing .archive files sounds like bad practice, I'm very interested to hear why!