I have a UIDocumentPickerViewController with the following code:

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

This opens the picker and I can pick .txt files, but I cannot pick .sql files. The following screenshot shows what a .sql file looks like in the picker.

I've added the following to my info.plist file which to my understanding may be needed (ignore the UTTypeReferenceURL, I'm just trying to get this to work.)

<key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.sql</string> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>SQL statement(s)</string> <key>UTTypeIconFile</key> <string>public.sql</string> <key>UTTypeIdentifier</key> <string>public.sql</string> <key>UTTypeReferenceURL</key> <string>http://www.w3.org/Graphics/JPEG/</string> </dict> </array>