Support lower IOS versions with RealityKit feature

I have an IOS app with IOS version 10+ , i need to add some feature that depend only on RealityKit to appear with users whom their IOS version is 13+ , the app compiles and runs successfully on real device but the problem is when archiving for upload to app store it generates a swift file and says

"No such module RealityKit"

Sure the reason is related to versions < 13 but i can't edit that file (To add canImport to RealityKit) it's readonly

My question is how to cross this problem and make it archive successfully with lower versions support

Here is a demo that shows the problem when archiving https://github.com/ShKhan9/RealTester

Support lower IOS versions with RealityKit feature
 
 
Q