Whenever I tap to open pdf using the QLPreviewController, on an iPhone 14 Pro iOS16 simulator device on Xcode 14.0.1 on a M1 machine, I get a crash with the following call stack:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSSetM addObject:]: object cannot be nil'
terminating with uncaught exception of type NSException
CoreSimulator 857.7 - Device: iPhone 14 Pro (2F98B4D2-2D19-49D7-AD35-D62A26424E9A) - Runtime: iOS 16.0 (20A360) - DeviceType: iPhone 14 Pro
The above do not happen if I run on a real device. Any ideas?