Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

iOS 26 beta - Crash using QLPreviewController (QuickLook) in simulator.

Using the iOS 26 beta simulator, I am experiencing a crash using the QLPreviewController. This is easily reproduced using a small sample app and a sample excel file in the bundle. It does work in prior Xcode 16.4 and simulators (18.5). I didn't find any mention of this in Xcode 26 or iOS 26 release notes but I could have missed something. I don't have a spare device to update to iOS 26 and try on a real device so it may just be a simulator issue? Any feedback would be helpful. Thanks.

Error:

QuickLook/QLHostRemoteViewModel.swift:37: Fatal error: No extensions could be found matching '_AppExtensionQuery(extensionPointIdentifier: "com.apple.quicklook.UIExtensionPoint", predicate: nil, hostAuditToken: nil, extensionPoint: nil, allowsDuplicates: true)'

Sample view controller...

import UIKit
import QuickLook

class ViewController: UIViewController, QLPreviewControllerDataSource {
    var excelFileURL: URL!

    override func viewDidLoad() {
        super.viewDidLoad()

        // Load the Excel file (example: from bundle)
        if let url = Bundle.main.url(forResource: "file_example_XLSX_100", withExtension: "xlsx") {
            excelFileURL = url
            presentPreviewController()
        }
    }

    func presentPreviewController() {
        let previewController = QLPreviewController()
        previewController.dataSource = self
        present(previewController, animated: true, completion: nil)
    }

    // MARK: - QLPreviewControllerDataSource

    func numberOfPreviewItems(in controller: QLPreviewController) -> Int {
        return 1
    }

    func previewController(_ controller: QLPreviewController, previewItemAt index: Int) -> QLPreviewItem {
        return excelFileURL as QLPreviewItem
    }
}

FWIW: I was able to install on a test device using iOS 26 beta and it did not crash as it did in the simulator.

My assumption is that the device has the new Preview app installed and the QuickLook API utilizes this via an extension to present the file contents, etc. I do not see the Preview app available in the simulator.

It would be great to confirm this and add this to the release notes and verified by an Apple techie.

Yes. I can confirm. Only crashes in simulator. My app uses SwiftUI...

iOS 26 beta - Crash using QLPreviewController (QuickLook) in simulator.
 
 
Q