Type 'PhotogrammetrySession' has no member 'isSupported' in OS 13, xcode 14

I don’t understand why there is no member isSupported. Mine meets the project requirement which is OS 13 and xcode14. is there a way to update realityKit separately?

it seems RealityKit and RealityFoundation is not updated to latest ones when I upgrade my OS to 13. I found most recent RealityKit and RealityFoundation framework folders are in xcode.app directory in "OtherFrameworks" folder. I tried replacing the original with those above, but no matter what I do, I couldn't delete the original RealityKit.framework and RealityFoundation.framework located in /System/Library/Frameworks Even in root user I couldn't delete them. Any ideas?

Type 'PhotogrammetrySession' has no member 'isSupported' in OS 13, xcode 14
 
 
Q