CloudKit Shared Error

<CKError 0x28250d500: "Invalid Arguments" (12/2006); server message = "Only shared zones can be accessed in the shared DB"; op = 608B307A1B891298; uuid = B82344B1-B4FF-42B7-913C-4F2F07A10FD7>

Has Used ShareDB

I got the same problem. The only answer I found so far:

  1. First fetch all shared record zones, because they have different names, than the zones in private database.

`let result = try await sharedDatabase.allRecordZones()

  1. Then fetch records from this zones the usual way.

But my problem still remains, fetching all sharedZones delivers an empty array. But the sharing process was fine - at least I guess - it finally came to a sharing invitation, that could be accepted and triggered the SceneDelegate method ("userDidAcceptCloudKitShareWith").

CAN PLEASE ANYONE GIVE SOME ADVICE?

CloudKit Shared Error
 
 
Q