Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 12 users can no longer sync #281

Open
willocdev opened this issue Oct 20, 2018 · 4 comments
Open

iOS 12 users can no longer sync #281

willocdev opened this issue Oct 20, 2018 · 4 comments

Comments

@willocdev
Copy link

I didn't make any changes to the code that worked in iOS 11, but now I get the following errors when attempting to sync:

[19293:5031258] [error] error: -addPersistentStoreWithType:Binary configuration:(null) URL:file:///var/mobile/Containers/Data/Application/3958D3AC-BED2-437B-AD3A-AB375BA4CF6B/Library/Application%20Support/com.mycompany.myapp/com.mentalfaculty.ensembles.eventdata/transitcache/MainStore/download/0_BF7C72BC-E135-4DA4-9DEE-858446A3D9A3-20796-00000B0B1A8C21B5_66DC6A8F.cdeevent options:{ NSInferMappingModelAutomaticallyOption = 1; NSMigratePersistentStoresAutomaticallyOption = 1; } ... returned error Error Domain=NSCocoaErrorDomain Code=259 "The file couldn’t be opened because it isn’t in the correct format." UserInfo={NSUnderlyingException=Can't read binary data from file, NSUnderlyingError=0x281c1be40 {Error Domain=NSCocoaErrorDomain Code=259 "The file “0_BF7C72BC-E135-4DA4-9DEE-858446A3D9A3-20796-00000B0B1A8C21B5_66DC6A8F.cdeevent” couldn’t be opened because it isn’t in the correct format." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/3958D3AC-BED2-437B-AD3A-AB375BA4CF6B/Library/Application Support/com.mycompany.myapp/com.mentalfaculty.ensembles.eventdata/transitcache/MainStore/download/0_BF7C72BC-E135-4DA4-9DEE-858446A3D9A3-20796-00000B0B1A8C21B5_66DC6A8F.cdeevent, NSUnderlyingException=value for key 'NS.objects' was of unexpected class 'CDEPropertyChangeValue'. Allowed classes are '{( NSDictionaryMapNode, NSOrderedSet, NSString, NSNumber, NSArray, NSDictionary, NSNull, NSDate, NSSet, NSData, NSUUID, NSDecimalNumber, NSURL )}'.}}} with userInfo dictionary { NSUnderlyingError = "Error Domain=NSCocoaErrorDomain Code=259 \"The file \U201c0_BF7C72BC-E135-4DA4-9DEE-858446A3D9A3-20796-00000B0B1A8C21B5_66DC6A8F.cdeevent\U201d couldn\U2019t be opened because it isn\U2019t in the correct format.\" UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/3958D3AC-BED2-437B-AD3A-AB375BA4CF6B/Library/Application Support/com.mycompany.myapp/com.mentalfaculty.ensembles.eventdata/transitcache/MainStore/download/0_BF7C72BC-E135-4DA4-9DEE-858446A3D9A3-20796-00000B0B1A8C21B5_66DC6A8F.cdeevent, NSUnderlyingException=value for key 'NS.objects' was of unexpected class 'CDEPropertyChangeValue'. Allowed classes are '{(\n NSDictionaryMapNode,\n NSOrderedSet,\n NSString,\n NSNumber,\n NSArray,\n NSDictionary,\n NSNull,\n NSDate,\n NSSet,\n NSData,\n NSUUID,\n NSDecimalNumber,\n NSURL\n)}'.}"; NSUnderlyingException = "Can't read binary data from file"; }

@drewmccormack
Copy link
Owner

drewmccormack commented Oct 20, 2018 via email

@willocdev
Copy link
Author

Still wrestling with this. I verified I have the most recent version of the code. The link you referenced refers to using transformables, but my Core Data model uses only numbers, strings, and booleans.

I specifically get the error when I am attempting to sync a fresh install of an app with data previously synced to iCloud.

The error is coming from:
"addPersistentStoreWithType:Binary configuration:(null) URL:"

With error:
Error Domain=NSCocoaErrorDomain Code=259 "The file couldn’t be opened because it isn’t in the correct format." UserInfo={NSUnderlyingException=Can't read binary data from file, NSUnderlyingError=0x281b45260 {Error Domain=NSCocoaErrorDomain Code=259 "The file “0_BF7C72BC-E135-4DA4-9DEE-858446A3D9A3-20796-00000B0B1A8C21B5_66DC6A8F.cdeevent” couldn’t be opened because it isn’t in the correct format."

@drewmccormack
Copy link
Owner

drewmccormack commented Nov 19, 2018 via email

@drewmccormack
Copy link
Owner

drewmccormack commented Nov 19, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants