You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered problem: My Core Data model contains a bunch of field of type (optional) URI which translate to NSManaged public var foo: URL?. Looking into the CloudKit dashboard after the initial sync all those fields are missing in the corresponding record type. Any idea why this is? Do I need to go with a Transformable instead for URLs?
Thanks!
The text was updated successfully, but these errors were encountered:
Record properties must be of a type that conforms to CKRecordValueProtocol, which includes:
Array(Conforms when Element conforms to CKRecordValueProtocol.)
Bool
CKAsset
CKRecord.Reference
CLLocation
Data
Date
Double
Float
Int
Int16
Int32
Int64
Int8
NSArray
NSData
NSDate
NSNumber
NSString
String
UInt
UInt16
UInt32
UInt64
UInt8
Using Transformable is probably the best approach. Another option would be just storing them as Strings, or using CoreDataAdapterRecordProcessing to convert URL<->String at the point CKRecords are created.
Hi again,
I encountered problem: My Core Data model contains a bunch of field of type (optional) URI which translate to
NSManaged public var foo: URL?
. Looking into the CloudKit dashboard after the initial sync all those fields are missing in the corresponding record type. Any idea why this is? Do I need to go with aTransformable
instead for URLs?Thanks!
The text was updated successfully, but these errors were encountered: