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
}
}