core-data-migration Questions

4

I'm using Core Data in an iOS 7+ app that does not need to save user's data, all data the app needs is requested to services and it can be recovered at any time. So, if I change my data model in a ...
Acciaccatura asked 13/3, 2015 at 7:54

2

I tried to migrate my CoreData-Model (with CloudKit) and it duplicated all of the objects I had stored. How can I correctly migrate when using CoreData with CloudKit? Summary I am using CoreData wi...
Niccolo asked 30/8, 2020 at 11:10

7

Just moved to Xcode 11 and getting the following crash at launch: CoreData: fault: One or more models in this application are using transformable properties with transformer names that are either ...
Behm asked 22/9, 2019 at 20:58

5

Solved

I am working on a application in which we are using x.x.xcdatamodel. Now in same x.x.xcdatamodel I have added an attribute in one of the entity. The application crashes showing the message "This NS...
Jesuitism asked 21/3, 2016 at 11:57

3

I have written this app in Swift 5 and is already LIVE in App Store. Now, I just want to add a new single boolean attribute to one existing entity in coredata. For this purpose, I followed steps: ...
Nonoccurrence asked 20/1, 2021 at 13:46

1

Solved

I have an app out in the App Store, and I am working on a lightweight migration (adding new attributes and new entities, not deleting anything). From extensive research, I know that I need to add a...

1

I have read a few articles indicating that there should be light weight migration whenever there is a change in entity, attribute or relationship. But a few days ago when I was talking to my ...
Surety asked 3/2, 2021 at 5:57

4

I want to do Lightweight migration in core-data. I am adding an attribute to an entity which is working well. But I want after this particular migration that entity's data (all objects contained i...
Amalita asked 9/10, 2015 at 3:50

2

Im trying building my application from Xcode11 beta on phone IOS 13 Beta. I have crash when application loading. 2019-07-22 13:58:12.910460+0300 GoodWine[3738:792501] [error] fault: One or mor...
Windermere asked 22/7, 2019 at 11:10

1

We're experiencing an exception from our SQL database while trying to migrate Core Data on iOS 10. The exception is thrown but it seems the migration still succeeds. We do a manual migration then M...
Krystynakshatriya asked 17/2, 2017 at 22:20

3

Solved

So I have version 1 of my Core Data app in the App Store and now I started working on version 2. I have some small changes to my data base model, and some custom code I need to run after those ch...
Jeffjeffcoat asked 13/8, 2014 at 11:34

2

Solved

Right now I use versioning to make any changes in a database. But it brings some problems. For example it's hard to merge a feature branch with a new db version into a master/dev where somebody als...
Helse asked 21/11, 2017 at 19:43

3

Solved

I'm using Core Data's automatic lightweight migration successfully. However, when a particular entity gets created during a migration, I'd like to populate it with some data. Of course I could chec...
Lampblack asked 11/6, 2010 at 19:46

4

Solved

We had a 2 separated apps that we have merged to 2 targets in the same workspace. Both had their core data model (app1.xcdatamodeld and app2.xcdatamodeld). Now that both are in the same workspace ...
Agrapha asked 28/7, 2015 at 5:40

2

My old core data model has an NSDate field, which I would like to change to a NSNumber. I read the Apple documentation and several similar questions on SO and other blogs (see references at end of ...
Glochidium asked 25/4, 2013 at 18:37

2

Solved

I'm building a mapping model for my migration with a custom entity migration policy, and I'd really like to build some unit tests for this migration. The migration seems to work correctly when I ru...
Spoor asked 14/8, 2012 at 19:30

4

Solved

I'm really stuck here with upgrade testing from v1 to v2 of an iPhone application. I have IPA releases that I'm testing via ad hoc distribution via iTunes to my iPhone device, one for v1 of the app...
Josiejosler asked 2/10, 2011 at 3:49

0

I am creating a new NSPersistentStoreCoordinator for background long savings from the server. It worked fine but suddenly I see a crash in Production with the following error - CRASH_INFO_ENTRY_...
Baird asked 7/9, 2016 at 20:21

1

Solved

In my application I have used one class (say CoredataHandler.swift) for storing and retrieving objects. I have followed this tutorials . I have used Strategy 2: Parent/Child Managed Object Contexts...
Fatuitous asked 26/7, 2016 at 6:22

2

I am facing weird IOS app issue for the Core Data migration. Below are the mentioned Logs for your This issue only happens when an IOS8 Device migrates app from lower version to newer version.Note ...
Clougher asked 30/12, 2015 at 6:11

2

Solved

Our app is having a coredata store which is based on a single coredata model. There are read-only data as well as read-write data. The read-only data are pre-loaded and bundled along with the app,...
Marauding asked 13/11, 2015 at 13:39

1

Solved

I am attempting my first lightweight CoreData migration. I read two guides on lightweight migrations. Both add code to a CoreDataStack class, modifying variables like NSPersistentStoreCoordinator a...
Garish asked 20/1, 2016 at 23:35

3

Solved

Let's say I have a model entity with 3 attributes. I then generate the NSManagedobject subclass for this entity and add custom methods along with properties to this class. At a later day I added a ...
Dermatologist asked 12/7, 2014 at 0:27

2

Solved

I have my Core Data Store and I use the flag 'NSInferMappingModelAutomaticallyOption' so that whenever I make changes to the Core Data Model I first create a new model version, and the changes to t...
Upheld asked 8/7, 2013 at 19:52

8

Solved

I'm trying to use the migration feature in CoreData. I've followed the Apple Documentation. I have a problem in the following method: /** Returns the managed object model for the application. If...
Conferee asked 17/2, 2010 at 15:50

© 2022 - 2024 — McMap. All rights reserved.