Crash with iOS 13

I am using realm 10.25.2 with Xcode 13.2.1 and I can see crash here:

function sharedSchema.

in the line:
malloc_ptr classes(objc_copyClassList(&numClasses), &free);

I try with other version 10.17 and 10.20 with the same result.

I use realm from splash.

Also see in the log this:

didDisappear < MyApp: 0x7f899e85da00>

deinit < MyApp.SplashScreenView: 0x7f899e85da00>

2022-06-15 20:41:06.705867+0200 MyApp[27444:2084370] [] nw_connection_receive_internal_block_invoke [C26] Receive reply failed with error "Operation canceled"

2022-06-15 20:41:06.705981+0200 MyApp[27444:2084370] [] nw_connection_receive_internal_block_invoke [C26] Receive reply failed with error "Operation canceled"

2022-06-15 20:41:06.706148+0200 MyApp[27444:2084370] [] nw_connection_receive_internal_block_invoke [C26] Receive reply failed with error "Operation canceled"

2022-06-15 20:41:06.706325+0200 MyApp[27444:2084370] [] nw_connection_receive_internal_block_invoke [C26] Receive reply failed with error "Operation canceled"

SingletonMetadataCache(0x600000249b40): cyclic metadata dependency detected, aborting

CoreSimulator 783.5 - Device: iPad Pro (9.7-inch) (3948E767-3034-48B3-A0B2-BBF5E8EB8C99) - Runtime: iOS 13.0 (17A577) - DeviceType: iPad Pro (9.7-inch)

Any idea?

Thank you.

Showing (only) the error doesn’t really give us much to go on. It’s likely caused by some code you wrote but without seeing that and some further troubleshooting there’s no way to zero in on the issue.

A good process for troubleshooting is to add a breakpoint to your code and run the app - if it crashes before that breakpoint, remove it and then add a new breakpoint before that one. Same thing if it crashes afterwards.

In your case a good place to start is somewhere around didDisappear - perhaps some code is attempting to access a var that has gone out of scope.