How to fix “Field ‘recordName’ is not marked queryable” in CloudKit

The issue While writing an iOS app in Swift using CloudKit and CoreData with NSPersistentCloudKitContainer, I ran into the issue “Field ‘recordName’ is not marked queryable” and couldn’t see an obvious solution. Searching online didn’t give many helpful results either. This error message would show up in the CloudKit Dashboard as well as in theContinue reading “How to fix “Field ‘recordName’ is not marked queryable” in CloudKit”