![]() | CoreData & iCloud |
|
06 Oct 2012, 16:39
Missaq Ataschi (2 posts) |
hi i have just bought your eBook because of the iCloud and CoreData implementation what is at the moment the most confusing thing in iOS development… After a little bit playing with the iCloud CoreData Code i must say i am a little bit disappointed… i have implement the “initializeCoreDataStackV2” method in my AppDelegate what can i do? I miss also some new things from iOS6 which apple shows on WWDC2012 video about iCloud and CoreData… |
|
08 Oct 2012, 00:17
Marcus S. Zarra (239 posts) |
Have you compared your code to the sample code? The error you posted indicates that you are trying to add the same store twice. Did you typo a variable name? |
|
10 Oct 2012, 12:53
Missaq Ataschi (2 posts) |
hi marcus, thx a lot for your answer… the error message was a mistake in my code sorry… when i build it the first time everything works fine but the second time i get this error: exception ‘NSInvalidArgumentException’, reason: ‘nil is not a valid persistent store’ by the second build it seems that the store is nil… i can’t check your projekt because it doesn’t run… i really think that iCloud with CoreData has still a lot of bugs and Apple has a lot todo… the WWDC 2012 example is more a workaround than a solution… |
|
22 Oct 2012, 01:17
Aaron Douglas (2 posts) |
Hi Marcus - I’m skipping around your beta book right now and I am primarily interested in the iCloud integration, specifically section 7.2 NSManagedObjectContext direct to iCloud. I noticed though that the example code zip file under the “iCloud” that its only the iCloud example using UIManagedDocument. Are you planning on also including the iCloud example code for putting the whole context into iCloud? Thanks much! |
|
22 Oct 2012, 01:29
Aaron Douglas (2 posts) |
Or maybe I’m just an idiot and didn’t see initializeCoreDataStack and initializeCoreDataStackV2. :) |
|
06 Nov 2012, 19:27
Marcus S. Zarra (239 posts) |
Aaron, Yeah there are a couple of different variations of the code in the AppDelegate to demonstrate both paths. Glad you solved it :) |
|
22 Nov 2012, 22:37
Abhishek Patel (2 posts) |
I’m having issues running the same app, with the same icloud sync data working properly. Running from scratch, using the initializeCoreDataStack method, with no pre-existing data on icloud (deleted from settings), launching the app on an iphone 5 boots and loads the context really fast. On an iPad 2, it takes forever and it finally gives this error: why is this happening? Is there a way to fix this issue? Let me know. iCloud is turning to be really unpredictable, and frustrating. P.S. is there a way to switch to local storage if icloud can’t be accessed and merge the changes once connection can be made? |
|
26 Nov 2012, 10:05
Marcus S. Zarra (239 posts) |
You can turn off the settings when you create the iCLoud and Core Data is not ready for prime time in my opinion. It is better in 6.0 (which is part of the reason this book ignores 5.0) but it still has quite a ways to come before it is truly stable and mature. |
|
30 Nov 2012, 17:35
Abhishek Patel (2 posts) |
Thanks Marcus. Hope they improve upon it by the next OS |
| You must be logged in to comment |

