Issues getting SwiftData to work with DocumentGroup

I'm wondering if the beta DocumentGroup API for SwiftData is working at all.

I've validated in multiple test projects that the linked API above fails. However I can resolve all issues by using a WindowGroup instead, where inside I'm querying SwiftData and able to get all data (even CloudKit persistence works).

Logs don't appear to contain useful information here.

Replies

DocumentGroup is still broken for me even on the RC beta build. I see the following error:

Failed to initialize CloudKit metadata: Error Domain=NSCocoaErrorDomain Code=134407 "Request 'FB45661A-3619-4593-A7D1-2E164C9C2667' was cancelled because the store was removed from the coordinator.

This doesn't appear on WindowGroup.