Questions tagged [xcdatamodel]
113 questions
0
votes
1 answer
xcdatamodel history causing git push errors
I have enabled history for xcdatamodel file.From the xcode it appears to be one file
from terminal its a set of folders
my.xcdatamodeld/
my 2.xcdatamodel
my.xcdatamodel
I am unable to deliver this to my remote git repository due to…
0
votes
1 answer
Core Data Not Saving Relationships Between Objects
I have a project that uses the same xcdatamodel file as another project. In fact it's the exact same file. I copied it from one project to the other. I also copied the object files over with a few modifications and put them in a static library that…

iHorse
- 491
- 1
- 5
- 14
0
votes
1 answer
Is there a mechanism to detect a design change in the datamodel for an iPad application?
I am building a new application and fully expect the datamodel to change in the future. I was wondering if the existing constructs have a versioning attribute that can be used for detecting a change that will trigger a migration.

mobibob
- 8,670
- 20
- 82
- 131
0
votes
1 answer
iphone coredata xcdatamodel versioning...is their a limit to versions?
I am going through my 8th version of the iphone datamodel, and this is over the span of months, so improvements come along and changes have to be made. I was wondering if there is a limit to how many versions I end up creating.
Does this affect…

lionz
- 505
- 2
- 9
0
votes
1 answer
How to check if CoreData is empty?
I am trying to check if certain entity has data, so I wrote this code I am not sure if my code correct.When I check my code I found that if there is a data I got the answer that "data exist", but if there is no data compiler ignore else statement. I…

user13481868
- 17
- 6
0
votes
1 answer
How to prevent Xcode from making inconsequential changes to data model file
I'm working with Xcode Version 10.0 (10A255) on MacOS High Sierra 10.13.6. I have the data model file (myproject.xcdatamodel/contents) in Git and that's great for tracking changes.
The problem I have is that whenever I inspect the data model in…

Robert Dodier
- 16,905
- 2
- 31
- 48
0
votes
1 answer
problems saving to persistent storage iphone
I am writing an iphone app; I need to save the data to persistent storage, but I am having the problems...
I created an entity in xcdatamodel and I have no problem getting the default value set for my attribute. In my testing, I go thru the code…

san
- 133
- 1
- 6
0
votes
1 answer
App Store application submitting error because of xcoredatamodel
After I submitted my application, apple sent an email that is below. I could not where the problem is ? Can anyone help me in this issue ?
enter code here
* This bundle is invalid - The Info.plist file for
/****.app/CoreData.framework is missing…

Burak Nurçiçek
- 1
- 2
0
votes
1 answer
Cannot save strings into CoreData
I'm trying to save strings I have in my string array into the Core Data. My .xcdatamodel looks like this:
My saving function (a method of a class called "Memory"):
func save(from: [String])
{
for i in 0..

aleksy.t
- 267
- 2
- 18
0
votes
1 answer
ios create sqlite db and xcdatamodel
I wish use nsmanagedobject to use a sqlite database into my project..
I downloaded CoreDataBooks sample but there's something that I don't understand right...
for example... where is the link between the tables and xcdatamodel?
i tried to change the…

ghiboz
- 7,863
- 21
- 85
- 131
0
votes
1 answer
Define Entity's Attribute's Value
I am trying to edit rawURL so that it looks in the correct folder within my application bundle. I looked at Apple's documentation, but when I opened up my application's .xcdatamodeld, the attribute whose String value I'm looking to edit, didn't…

maddie
- 1,854
- 4
- 30
- 66
0
votes
2 answers
Core data one-to-one unidirectional relationship
I have 2 entities in which totally 12 properties are there of 3 variations of min, max and average of some particular type of fields. Hence I refactored the 2 entities into 3 entities making the 3rd entity as 'Values' which contains 3 properties i.e…

Rameswar Prasad
- 1,331
- 17
- 35
0
votes
0 answers
Are BOOL and bool interchangeable when used with xcdatamodel?
I have an iOS app that uses CoreData; the xcdatamodel has several boolean attributes. My question is: in my objective-c code, are BOOL and bool interchangeable within those attributes? The way I've written my code, the logic depends on true or…

SpokaneDude
- 4,856
- 13
- 64
- 120
0
votes
1 answer
Store an Array attribute in the Data Base
I have an attribute in my entity that should store multiple Int.
This is how the recieved JSON from the API looks like
{
"type": “KsCell”,
“id”: 23,
“allowedSize”: [1,2],
},
How can I declare/store this in the xcdatamodeld?
this is a…

kev.a
- 33
- 1
- 6
0
votes
0 answers
Core Data: Add a column on a table
I just want to add a column on a table for my new version of my app, and keep the filled columns. So I work with Core Data, this is my momd:
On my appDelegate:
/* CORE DATA */
// MARK: - Core Data stack
lazy var applicationDocumentsDirectory:…

Ben
- 761
- 1
- 12
- 35