Comments (15)
Do you have a developer account and iCloud enabled in the Demo App ?
from seam.
Yes, I changed the domain com.name... and enabled iCloud. When I comment out that line I am able to create records but will not sync with other devices until I re-enable but then it crashes.
from seam.
ok Thanks. I am checking the demo app.
from seam.
Thanks for pointing out the error . Check now I updated it ! The demo works for me :)
btw I had no crashes on the triggerSync() method and the sync is working now.
from seam.
Yep, no more crash. Great job...
from seam.
Thanks man ! :)
from seam.
Quick Question: I created a new project MyNotes SplitView with CoreData and added the CKIncrementalStore.swift and adopted the CoreDataStack.swift
In my Core Data I have a Class called Event with two fields timeStamp and note. Before integrating the CKIncrementalStore I can create local Core Data files.
Once I implement the CKIncrementalStore I receive below error when trying to add a new record.
2015-06-22 19:37:46.803 MyNotes[9790:427654] CoreData: error: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification. [<MyNotes.Event 0x7fceb85b5490> valueForUndefinedKey:]: the entity Event is not key value coding-compliant for the key "cks_LocalStore_Attribute_ChangeType". with userInfo {
NSTargetObjectUserInfoKey = "<MyNotes.Event: 0x7fceb85b5490> (entity: Event; id: 0x7fceb85a8c50 <x-coredata:///Event/t7CA54E5E-46A2-46AF-A500-BC7DE2D8A00A2> ; data: {\n note = \"YES - 2015-06-22 23:37:46 +0000\";\n timeStamp = \"2015-06-22 23:37:46 +0000\";\n})";
NSUnknownUserInfoKey = "cks_LocalStore_Attribute_ChangeType";
}
2015-06-22 19:37:46.818 MyNotes[9790:427654] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MyNotes.Event 0x7fceb85b5490> valueForUndefinedKey:]: the entity Event is not key value coding-compliant for the key "cks_LocalStore_Attribute_ChangeType".'
Any ideas?
from seam.
Its best if you consider starting with the demo app.
from seam.
Yep, I have the demo app working great. I was trying to create a new project and see how it would work.
from seam.
Do you think I am missing a step?
- Create a SplitView Core Data iOS app
- Add CloudKit
- Add field to Event entity called note
- Create a NSManagedObject Class for Event
- In MasterViewController.swift Change insertNewObject to use Event Class
- Run App and I can create new entries without errors.
- Add CKIncrementalStore.swift to project
- AppDelegate change persistentStoreCoordinator() to use CKIncrementalStore
- MasterViewControler.swift add Notification syncFinished
- Run and add Record and receive ERROR
2015-06-22 21:22:39.144 MyNotes[1031:29993] CoreData: error: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification. [<MyNotes.Event 0x7fd7fc101230> valueForUndefinedKey:]: the entity Event is not key value coding-compliant for the key "cks_LocalStore_Attribute_ChangeType". with userInfo
Did I miss any steps to integrate the lib?
Thanks.
from seam.
The problem is that when u first ran the app it created the store file and next time when u change the store type to CKSIncrementalStore it tries to reuse that file while CKSIncrementalStore does some model changes at the backend to create the new sqlite file.
In short delete the app and run it again but this time set the store type to CKSIncrementalStore first.
from seam.
Sorry, I forgot to place that step :) but I do delete it before I run it with same results.
from seam.
If that's the case then the demo shoudn’t actually work. Kindly check your CoreData stack with any possible errors.
If you copied the code from the CoreDataStack class from the demo, then you might have missed a few things that need to be changed like Model name etc.
Best is to copy the CoreData Stack Methods from the app delegate into your CoreDataStack class and then set the store type to CKSIncrementalStore.
I don't think it's a logical error, I can't possibly help you with this particular problem.
from seam.
Thanks...
ps: I wanted to update you that the error was Apple's pre-written UITableView Core Data code causing the issue.
from seam.
Thanks :)
from seam.
Related Issues (20)
- Package Seam as a Carthage Framework HOT 4
- Cocoapods can't find Seam pod HOT 2
- SeamStoreType undeclared identifier HOT 12
- Getting NSInternalInconsistencyException HOT 2
- Many-to-many relations HOT 1
- unexpectedly found nil while unwrapping an Optional value
- Readme Content HOT 2
- TVOS support HOT 3
- Push configuration HOT 1
- Crash in executeInResponseToFetchRequest HOT 4
- Crash because of NSMutableOrderedSet HOT 2
- How does Seam handle migration?
- Works in iOS 8.1, requires 9.0
- Default data
- Repo status and CKContainer question HOT 7
- Swift 3.0 / App crashing HOT 2
- Is it possible for Seam to sync with (the new) shared databases?
- Zone.swift: Operations created, but not added to NSOperationQueue
- 'NSInvalidArgumentException', reason: 'Unsupported store type.' HOT 1
- Taking CoreData operations off main thread
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seam.