Still having this issue. Have tried the recommended.
The main issue that I think this causes is that it does not save SwiftData when the simulator is closed. The data is only saved if you wait a while after making the change or specifically save the context after every right, or close the app in the simulator.
But not if I just rebuild or stop the simulator.