Also in cloudkit dashboard if I fetch zones in shared database then it return nil. But when I fetch with Fetch with change token box checked and field empty then it returns the above userProfileZone. But the details are grayed out. I dont understand what is going on. I would appreciate any help
Post
Replies
Boosts
Views
Activity
Edits: I see in the cloudkit dashboard there is shared database zone with zone name: userProfileZone and owner name _9d4825db9b0aa911655e420ec0016129. But the below code after fetching CKRecordZone from shared database returns nil self.sharedDB?.fetchAllRecordZones(completionHandler: { (ckrecordZones, error) in
if error != nil {print(ckrecordZones?.first?.zoneID.zoneName)}
}
I dont know why it is not returning the zone