I'm following this WWDC2020 video in trying to specify cloudKit database scope to public, like
cloudKitContainerOptions.databaseScope = .public
However Xcode 13 always complained that
com.apple.coredata.cloudkit.zone:__defaultOwner__ = <CKError 0x6000014988d0: "Server Rejected Request" (15/2027); server message = "Custom zones are not allowed in public DB"
even though I didn't create any custom zone in the public database or specify the zone from iOS application side. Pointing the above databaseSceope = .private works fine and the app does save the records to the private database in a zone called com.apple.coredata.cloudkit.zone
.