issue: NSPersistentCloudKitContainerOptions.databaseScope in Xcode13 beta

let privateOptions = NSPersistentCloudKitContainerOptions(containerIdentifier: "***")

privateOptions.databaseScope = .private

Error1: Value of type 'NSPersistentCloudKitContainerOptions' has no member 'databaseScope'

Error2: Cannot infer contextual base in reference to member 'private'

This works fine in Xcode 12.5 , but not in Xcode 13 beta.

Accepted Answer

You need to add import CloudKit to your swift file.

issue: NSPersistentCloudKitContainerOptions.databaseScope in Xcode13 beta
 
 
Q