When I try to present the QLPreviewController, the app crashes, and I can see the log as shown below.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]' _LSContextInitReturningError() failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }} terminating with uncaught exception of type NSException CoreSimulator 857.7 - Device: iPhone 14 Pro Max (090DE6D4-3F15-4A60-ABDD-09BE30F01F89) - Runtime: iOS 16.0 (20A360) - DeviceType: iPhone 14 Pro Max
Any help would be greatly appreciated! Thanks!