core-data-migration Questions

1

Solved

The documentation (as of iOS 8) says only lightweight migrations may be performed on an iCloud backed Core Data store. What options are there if one still needs to perform custom migrations afterwa...
Chucho asked 17/8, 2015 at 23:8

1

long story short, my Core Data schema was changed, and my app was submitted to the app store, which caused everybody who updated their app to crash. The crash is caused by a missing NSPersistentSto...
Lownecked asked 23/7, 2015 at 15:29

1

Solved

I have two apps which talk to the same API. As they've grown, they've each taken on more of the API's features, and I'm now at the stage where they're identical except for the arrangement of the st...
Jenkins asked 6/5, 2015 at 11:39

2

I'm trying to migrate to a new completely different model in my project. The changes are way too much for a lightweight migration and I think the best way is to iterate through the top level object...
Untinged asked 26/7, 2014 at 17:19

3

I am currently writing the next version of an app. In the Old version, there was no CoreData sqlite In the New version, we have a local CoreData sqlite database. When I install the new version o...
Aldos asked 7/11, 2014 at 17:24

1

Solved

EDIT 1 While I understand that for this particular scenario (and other alike) I could use the mapping editor alone to migrate my store correctly so that the values in the persistent store don't jum...
Sylvestersylvia asked 17/8, 2014 at 22:22

0

I'm tearing my hair out with this one. I've got an App on iTunes which I added iCloud support to end of last year (Oct '13) on iOS7.0 This week I decided to write a new functional for the App which...
Mahau asked 4/7, 2014 at 10:7

4

Solved

I'm having a problem performing a lightweight migration when migrating from a store that is defined by two separate xcdatamodel files. In version 1.0 of my app, I had the models broken out into an...
Mitten asked 7/6, 2012 at 22:7

6

I have 2 object models in Core Data (say v1 and v2). This migration is eligible for light weight migration. Now, I want to execute custom code after the migration but only when the migration is fro...
Undergraduate asked 29/6, 2011 at 20:10

2

Solved

I am developing an application that is rolled out in stages. For each sprint, there are database changes so core data migration has been implemented. So far we have had 3 stage releases. Whenever s...
Wilmott asked 28/4, 2014 at 5:57

1

Solved

Finally got this migration working, it was a big pain. source code Everything works fine in iOS6 but in iOS7 app crash
Spencerspencerian asked 4/5, 2014 at 19:31

1

I have a switch that turns iCloud on or off for an iOS 7 app. iCloud sync works fine. When iCloud is on and I turn it off, I call this code: - (void)migrateiCloudStoreToLocalStore { NSError *erro...
Mercantilism asked 31/3, 2014 at 17:36

2

Solved

The local account From the WWDC 2013 207 session about Core Data and iCloud: You provide us a single store URL inside the application's local sandbox and we then create an opaque container wit...
Senary asked 20/2, 2014 at 0:2

3

I have seen successful core-data migrations of my 4Gb database on my iPad on application launch taking several minutes. And now suddenly, some users report crashes after installing a new version an...
Haigh asked 20/1, 2014 at 13:1

2

Solved

I'm trying to create a mapping model for my app that has some custom code. Thus I created a xcmappingmodel and I subclassed NSEntityMigrationPolicy and implemented the createDestinationInstancesFo...
Pot asked 22/6, 2011 at 15:2

2

My plan is to delete the old Core Data stack (the NSManagedObjectModel .momd file & the NSPersistentStore .sqlite file) because: I don't have experience with Core Data migrations. the new .xc...
Forbade asked 16/1, 2012 at 20:47

2

Solved

Hi I'm going to update my iOS app in appstore and this update contains database change so now how to migrate my existing core data by deleting old database of existing version on App update? I hav...
Pekoe asked 4/9, 2013 at 16:20

3

I started using CoreData in my application following Stanford CS193P lessons regarding the use of iOS 5's new class UIManagedDocument. The approach itself is quite straightforward but I can't under...
Tropical asked 19/3, 2012 at 13:24

1

I have the following model: parent is a to-one relationship (optional, no minimum, maximum=1). children is the inverse to-many relationship (optional, no minimum, no maximum). I added a new mod...
Mezzanine asked 29/3, 2013 at 12:15

9

Solved

I am attempting to update an app that implements a core data store. I am adding an attribute to one of the entities. I added the following code to my delegate class: - (NSPersistentStoreCoordina...
Cleopatra asked 2/12, 2009 at 1:13

2

I have two model versions - 12 and 13. Then I created a xcmappingmodel-File with source 12 and destination 13. I subclassed NSEntityMigrationPolicy and added my class to the mappingmodel-File to t...
Raker asked 21/11, 2012 at 12:49

1

Solved

The function for a relationship is like: FUNCTION($manager, "destinationInstancesForEntityMappingNamed:sourceInstances:","employeesToEmployees",$source.employees") What is ...
Kith asked 19/12, 2012 at 4:50

4

Solved

I am trying to do a migration I have 2 versions of model 1.xcdatamodel 2.xcdatamodel I created a mapping model from version 1 to 2 1to2.xcmappingmodel The problem is that it can't find the m...

2

Solved

I've got an iPhone app that uses many-to-many relationships to link tags and notes together. I'm currently using Core Data's "Relationships" feature to accomplish this, but would like to migrate to...
Tigrinya asked 24/6, 2012 at 3:38

1

Solved

I'm trying to make a database upgrade using a custom NSEntityMigrationPolicy. This is how my data model looks like now and what is the intended result : A <-------->> B ( 1 A -> many...
Adai asked 25/6, 2012 at 13:36

© 2022 - 2024 — McMap. All rights reserved.