Unfortunately this is an ongoing issue and I still don't know how to debug my app's Quick Look Preview Extension. I tried creating a default Xcode project and I can debug it by running the Extension target, selecting Finder in the Xcode dialog, then selecting a file in the Finder and pressing Spacebar.
But this doesn't work for my already existing app: the preview just shows a spinning progress indicator, even when using the exact same code in PreviewViewController.swift. The only notable difference I can think of is that my app has an iCloud entitlement. Removing that entitlement and changing the bundle identifiers of the host app and the extension to those used in the sample app get rid of the endless progress indicator... but instead cause an immediate error to be shown at the top of the preview window: "Couldn’t find extension org.domain.problem.QuickLook”
I would appreciate any help, as currently the only way to test the Preview Extension is to publish it on the App Store, download it, and see if it behaves as expected, and if not, try something different and repeat the cycle.
I created FB17066774.
Topic:
App & System Services
SubTopic:
General
Tags: