CloudKit doesn’t support unique constraints on schema fields. So running my setup code multiple times led to duplicate records in CloudKit (same data with different UUIDs). So I’m going to try using CKQuery
to make sure a record doesn't already exist before creating it.
CloudKit
Saturday July 22, 2023