Can't Open Any HTTPS Resource Swift
问题 So I'm developing an app that will need to present both PDF and PPTX files served via the HTTPS protocol. However, try as I might I can't get it to work. At first I used PDFKit, and I did the following: URLSession.shared.dataTask(with: url!) { (data, resp, err) in // viewer is a PDFView instance bound to the VC self.viewer.document = PDFDocument(data: data!) }.resume() Nothing came up in the view. I looked down at the console and saw the following error message: failed to find PDF header: `