UIDocumentPickerViewController of type pdf cannot pick pdf in simulator

I'm having this problem, with this code:

let docPicker = UIDocumentPickerViewController(forOpeningContentTypes: [
                .pdf
            ])
            docPicker.delegate = self
            docPicker.modalPresentationStyle = .currentContext
            view.window?.rootViewController?.present(docPicker, animated: true, completion: nil)

but then when I open the simulator and click the button that calls to the method that has this code...

Cannot pick the pdf document. Testing in browserstack with real devices is working, but it's a very slow process, why I cannot use simulators to make work this?

@albertb4work In the simulator, are you signed into iCloud and is the pdf file saved in iCloud or locally on device?

UIDocumentPickerViewController of type pdf cannot pick pdf in simulator
 
 
Q