Crash on launching framework which uses RealityKit in iOS 12 devices.

I have a framework which imports RealityKit. Minimum deployment target for the framework is iOS 13 and the app which uses the framework has iOS 12 as minimum deployment. RealityKit and RealityFoundation is set to optional in the build phases of the framework and the framework is optional in the app as well. But on launching the app in iOS 12 simulator I keep getting the following crash.

DYLD, can't resolve symbol _$s10RealityKit10HasPhysicsMp

If I change the minimum deployment of the framework to iOS 15, the same code works in iOS 12 simulator. No issues.

Also if I try with any other module like SwiftUI, which has min iOS 13 deployment, I don't find the issue and app launches without any issue.

Similarly, if I use ARKit instead of RealityKit, it works fine. No issues. Although ARKit min deployment is iOS 11 but it is also not available in simulators.

So why does weak linking RealityKit not work when the parent framework targets iOS 13 and iOS 14, but works alright when targeting iOS 15?

* * X code version: 13.3.1**