I am running the demo on an actual device running beta 1 of iOS 15 and every time I go to add a tag I get these errors in the log. Any thoughts on what I am doing wrong or is there a bug in the demo code?
Thanks,
Rob
2021-06-22 13:39:33.645193-0400 CoreDataCloudKitDemo[505:63776] [error] error: SQLCore dispatchRequest: exception handling request: <NSSQLSaveChangesRequestContext: 0x281ee5380> , threw while encoding a value. with userInfo of (null)
CoreData: error: SQLCore dispatchRequest: exception handling request: <NSSQLSaveChangesRequestContext: 0x281ee5380> , threw while encoding a value. with userInfo of (null)
2021-06-22 13:39:33.645306-0400 CoreDataCloudKitDemo[505:63776] [error] error: -executeRequest: encountered exception = threw while encoding a value. with userInfo = (null)
CoreData: error: -executeRequest: encountered exception = threw while encoding a value. with userInfo = (null)
2021-06-22 13:39:33.645724-0400 CoreDataCloudKitDemo[505:63776] [error] error: SQLCore dispatchRequest: exception handling request: <NSSQLSaveChangesRequestContext: 0x281ee5380> , threw while encoding a value. with userInfo of (null)
CoreData: error: SQLCore dispatchRequest: exception handling request: <NSSQLSaveChangesRequestContext: 0x281ee5380> , threw while encoding a value. with userInfo of (null)
2021-06-22 13:39:33.645818-0400 CoreDataCloudKitDemo[505:63776] [error] error: -executeRequest: encountered exception = threw while encoding a value. with userInfo = (null)
CoreData: error: -executeRequest: encountered exception = threw while encoding a value. with userInfo = (null)
2021-06-22 13:39:33.646286-0400 CoreDataCloudKitDemo[505:63776] [error] error: SQLCore dispatchRequest: exception handling request: <NSSQLSaveChangesRequestContext: 0x281ec5b00> , threw while encoding a value. with userInfo of (null)
CoreData: error: SQLCore dispatchRequest: exception handling request: <NSSQLSaveChangesRequestContext: 0x281ec5b00> , threw while encoding a value. with userInfo of (null)
2021-06-22 13:39:33.646380-0400 CoreDataCloudKitDemo[505:63776] [error] error: -executeRequest: encountered exception = threw while encoding a value. with userInfo = (null)
CoreData: error: -executeRequest: encountered exception = threw while encoding a value. with userInfo = (null)
-
—
Robb18
-
—
Robb18
Add a CommentActual Error:
Context saving error: Error Domain=NSCocoaErrorDomain Code=134040 "Save operation could not be completed." UserInfo={NSAffectedStoresErrorKey=(
"<NSSQLCore: 0x102c2b760> (URL: file:///var/mobile/Containers/Data/Application/1505976C-354D-4B4F-A1DE-E6A312F01E99/Library/Application%20Support/private.sqlite)",
(
"<NSSQLCore: 0x102c2b760> (URL: file:///var/mobile/Containers/Data/Application/1505976C-354D-4B4F-A1DE-E6A312F01E99/Library/Application%20Support/private.sqlite)",
"<NSSQLCore: 0x102c301f0> (URL: file:///var/mobile/Containers/Data/Application/1505976C-354D-4B4F-A1DE-E6A312F01E99/Library/Application%20Support/shared.sqlite)"
)
), NSUnderlyingException= threw while encoding a value.}
I believe it might have something to do with NSSecureUnarchiveFromDataTransformerName, Core Data and CloudKit with NSPersistentCloudKitContainer. But I don't know why this would be in the unmodified demo from Apple?
Any help much appreciated.