iOS 17.0 features not working when I have an iOS 17 simulator installed

I am on macOS 14.3 Release Candidate with Xcode 15.2 and iOS 17.2 simulators installed. If I attempt to use iOS 17 features such as the SwiftData framework, it throws an error despite running my project on an iOS 17 simulator with an error such as "'model context' is only available in iOS 17.0 or newer". I am in an iOS App Playground but I don't believe that this will change much (correct me if I'm wrong). How could I fix this issue so I can use these features in my application?

Thanks

A little update: After some further testing, I have found that this issue doesn't occur in an Xcode Project although it does happen in an iOS App Playground. I am participating in the Swift Student Challenge which requires an app playground to be submitted so I cannot use that workaround for this project.

iOS 17.0 features not working when I have an iOS 17 simulator installed
 
 
Q