After upgrading an Xcode to 13.0 version and recompiling my app with it on a device I started getting this exception:
libc++abi: terminating with uncaught exception of type NSException dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspectionDYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSJSONReadingAssumeTopLevelDictionary and NSJSONReadingAllowFragments cannot be set at the same time' terminating with uncaught exception of type NSException
It seems that the problem is with the new option topLevelDictionaryAssume added in JSONSerialization.ReadingOptions, available only for ios15.
What I've tried: I've checked all places where I had .allowFragments and replaced it with topLevelDictionaryAssume. It didn't help. Any advice would be appreciated.