fetchAllRecordZonesWithCompletionHandler fails with sharedCloudDatabase or specifically the zones come up empty. This used to work like last week. I have no idea why it's not working now. I haven't "unshared" anything...
I tried sharing a new record again, the share seems to go through but the custom zone (where the record is shared from) that is shared from the private database from user A does not show up in the cloud database on user B.
It fails like this on user B:
[database fetchAllRecordZonesWithCompletionHandler:^(NSArray<CKRecordZone *> * _Nullable zones, NSError * _Nullable error) {
DLog(@"Got from database %@ record zones: %@, error: %@", database, zones, error);
for (CKRecordZone* zone in zones) {
DLog(@"A zone with identifier: %@, name: %@", zone.zoneID, zone.zoneID.zoneName);
}
}The output shows that zones is an empty array. No error:
Got from database <CKDatabase: 0x170029680; databaseScope=Shared, container=<CKContainer: 0x1701690c0; containerID=<CKContainerID: 0x1700295e0; containerIdentifier=iCloud.blablabla, containerEnvironment="Sandbox">>> record zones: (
), error: (null)