Search code examples
ioscore-datacloudkitxcode11

CloudKit and CoreData Default Values


I'm setting up core data using an NSPersistentCloudKitContainer so that my data will automatically have CloudKit integration. The problem I'm having is that I can no longer have optional attributes in my entities. All of my optional attributes generate a compiler error

[entity].[attribute] must have a default value

Is this a bug? Is there a good work around for this issue?


Solution

  • It seems to be fixed in Xcode 11 beta 3.