I'm also seeing this in Xcode version 15.1 beta 3 (15C5059c).
I have a model (Sensor) with an optional property (end) and the code below causes the app to crash but only on a physical device. It works fine in the simulator with iOS 17.0 or iOS 17.2 but not on a physical device with iOS 17.03.
@Query(filter: #Predicate<Sensor> { sensor in sensor.end == nil }, sort: \Sensor.start, order: .reverse)
private var activeSensors: [Sensor]
If I replace with this, it works fine but it's not the result I'm trying to get at:
@Query var activeSensors: [Sensor]