Questions tagged [xcdatamodel]
113 questions
0
votes
1 answer
+entityForName: could not locate an entity named 'EntityName' in this model
I know this may look as a duplicate but I tried several answers and all of those did not work.
I am trying to use Core Data to store which levels are completed, but I am running in some trouble saving the data. At the moment dat a level is completed…

user3638160
- 17
- 6
0
votes
1 answer
The inverse relationship for <...> does not reciprocate an inverse relationship
I have the table A with the following relationships:
Relationship Destination Inverse
input B state
output B state
And the table B with the following relationship:
Relationship Destination Inverse
state A …

Dmitry
- 14,306
- 23
- 105
- 189
0
votes
3 answers
Cannot add model version xcode 7.3
I've added new model version before in this project but for some reason I cannot add them now. When I right click on ****.xcdatamodeld and select "Add model version" from Editor menu. New version is showing up in Finder when I click "Show in Finder"…

Matt
- 1,711
- 18
- 20
0
votes
3 answers
What does minimum value of a property of xcdatamodel in iOS means?
if set min. value of property say "X" equal to 1. Than for some scenario, the value goes to 0, how will the model behave? throw error/ warning? My scenario is I wanted to show count of messages in a label but when there is no messages then zero…

djay
- 375
- 2
- 18
0
votes
0 answers
App stuck on Launch Screen when migrating
I am performing a lightweight migration on an app.
I am using hockeyapp for distribution and when I update the app through that website the app stays on the Launch Screen for 20 seconds and then the iPad terminates the app with the error: "xxx…

Tomas Gudmundsson
- 203
- 2
- 10
0
votes
1 answer
Xcode Core Data models are missing
I am working on an iOS app using Core Data, and after doing some stuff in the storyboard, I tried to run the app and realize that all of my Core Data models are missing except my original one. My playground is also missing, but I don't really care…

Addison
- 3,791
- 3
- 28
- 48
0
votes
1 answer
Corrupted (Old) name of an entity - CoreData
I'm having the following problem: I have a model called Chat that needs to be updated to Conversation (only for mnemonic issues). The generated file still remains Chat although I've changed your name on the xcdatamodel file.
Given this I've decided…

halbano
- 1,135
- 14
- 34
0
votes
0 answers
Mapping multiple embedded objects in ios core data
Suppose I have a json response like this -
{
"status": {
"status": "Success"
},
"forecastDetails": [
{
"stageName": "Upside",
"percent": 99.92,
"amount": 16411537
},
{
"stageName": "Commit",
…

letsbondiway
- 470
- 3
- 18
0
votes
4 answers
CoreData Entity Fetch Request
I have an entity called TimeInterval whose only attributes are a startDate and finishDate, their type is Date. I obviously do not need to add another attribute called totalTime because that can be calculated by doing: [finishDate…

pnizzle
- 6,243
- 4
- 52
- 81
0
votes
2 answers
Swift Xcode. Rebuilding app from scratch and trying to copy over previous version coredata model
I had problems with an app I'm building and got numerous errors with cocoapods and incompatible build settings . I decided to start again and build the app back up from scratch. I managed to copy almost all files from the old to the new app and got…

lozflan
- 835
- 10
- 23
0
votes
1 answer
How to avoid a huge .xcmappingmodel file for small datamodel changes?
I currently have a unique MyProject.xcdatamodeld file. It is fairly easy to do the following, as no additional step is required:
add fields/classes
But I will need a MyProject.xcmappingmodel if I want to:
remove a field/class
rename a…

Cœur
- 37,241
- 25
- 195
- 267
0
votes
1 answer
Swift One to many relationship
I have two entities, User and Task. They are linker by a One to Many relationship, this is what they look like
import Foundation
import CoreData
@objc(User)
class User: NSManagedObject {
@NSManaged var id: String
@NSManaged var name: String
…

fselva
- 457
- 1
- 7
- 18
0
votes
2 answers
How to change attribute type in xcdatamodel?
I'm a newbie that is assigned to gigantic project. I have found a minor bug that needs fixing but i don't know exactly how.
Ok here it is. issueNumber attribute in Xcode's core data model is set to Integer 64. I need to change it to String, so the…

Miki
- 903
- 7
- 26
0
votes
1 answer
Transitioning old Datamodel to completely new one (start from scratch and delete everything else)
I have one xcdatamodel in the project, with 12 versions and I want to refactoring the model. Like create new one from scratch.
The new model will be very different and I don't want to keep the old entities, managedObjects, etc.... just empty…

silvaric
- 1,668
- 17
- 27
0
votes
0 answers
what s the best way to store information on iOS
I am working on an application that needs to store some informations locally. I first thought NSUserDefaults is a good way, but i m not very sure.
The information i am storing needs to be refreshed once in a while. The server could send me updated…

just ME
- 1,817
- 6
- 32
- 53