Questions tagged [xcdatamodel]
113 questions
3
votes
1 answer
Adding a CoreData Data Model file to XCode 4.2 causes source control to stop working with a question mark
I've been trying in vain for hours now to add a CoreData Data Model file to my XCode project, which is under SVN source control. Whenever I do, I get the following display in XCode:
I've followed at least 5 or 6 different articles now on ways to…

JasonD
- 7,472
- 5
- 31
- 31
3
votes
2 answers
XCode crashes when trying to view an .xcdatamodel
I have an app, backed by Core Data, that I've been working on for awhile. I use version control (formerly SVN, now Git) to move it around between different Macs.
The other day, I was unable to open the project. OH CRAP. Luckily, due to Time Machine…

bpapa
- 21,409
- 25
- 99
- 147
3
votes
1 answer
Is it possible to generate an xcdatamodel file outside of Xcode?
Is it possible to generate an xcdatamodel file and then import that file into Xcode? I need to create a data model for an iOS app from an existing schema specified by an industry standard. The result will be around two hundred Core Data entities…

Mike Zauzig
- 79
- 5
3
votes
3 answers
Moving entities between configurations in Xcode Data Model Editor
I'm currently working on an app which, will hopefully, use Core Data to store/retrieve data from 2 sqlite files (At the moment it just uses 1). I realise to do this I have to create another configuration in the Core Data Model Editor of Xcode which…

JDx
- 2,615
- 3
- 22
- 33
3
votes
2 answers
iOS - what is the right way to deal with a data model change?
I already have an app in the app store. I want to do an upgrade. My local data store has changed, with an extra table, and with a few fields added in the existing table. I want to retain the data in the old tables. How would I go about doing that?…

Suchi
- 9,989
- 23
- 68
- 112
2
votes
3 answers
Do multiple versions of xcdatamodel mean that we need multiple xcmappingmodel files?
I have multiple versions of xcdatamodel files:
app1.0.xcdatamodel
app1.1.xcdatamodel
app1.2.xcdatamodel (current)
Does this mean I need multiple combinations of xcmappingmodel files to cover all upgrade scenarios?
app1.0_to_app1.1.xcmappingmodel…

pulkitsinghal
- 3,855
- 13
- 45
- 84
2
votes
1 answer
Unable to add datamodel in xcode4
I'm porting my iphone app to ipad, and therefore created a completely new project. After programming a while, i wanted to import the coredata model from my iphone project, so i can have the same coredata storage layout. but for some reason, xcode…

user826955
- 3,137
- 2
- 30
- 71
2
votes
1 answer
Xcode 4: Replace NSManagedObject subclass
I have a project from Xcode 3 that I put through the conversion process to make it Xcode 4 compatible. Within this project, all of my NSManagedObject subclasses are inside a group with a ".xcdatamodeld" name.
If I update an entity in my data model…

stever
- 235
- 2
- 9
2
votes
2 answers
xcdatamodel corrupted
I am stuck with xcdatamodel being corrupted. I am a newbie and have no clue what to do hereon. Can supply the file which is being questioned alongwith the sqlite db as well...
Do not know what do as I am quite literally brain frozen.. pls help.
TIA

techster
- 41
- 3
2
votes
0 answers
xcode source control trap: unable to index file
I checked out a new branch of a good production build, and added a new core data model. It failed to build (separate issue) and in the process of troubleshooting, I removed the new model from the project. Now, Xcode fails to commit changes, with…

Henry95
- 623
- 6
- 16
2
votes
0 answers
How to Add an existing xcDatamodel file to Object
I already have an existing xcdatamodel file. So I create a new project with core data. Now I want to replace the xcdatamodel file provided by the xcode with xcdatamodel file that I had.
How would I do that?
How would I know that my old xcdatamodel…

user4951
- 32,206
- 53
- 172
- 282
2
votes
2 answers
Creating a User Interface From a Data Model
I already created my xcdatamodel file. Then I follow instruction in
http://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/XcodeCoreDataTools/Articles/xcdCreatingUserInterface.html#//apple_ref/doc/uid/TP40006854-SW1
So I…

user4951
- 32,206
- 53
- 172
- 282
2
votes
1 answer
generate Xcdatamodel file from JSON
Is it possible to generate xcdatamodel file from json? Here's how i imagine it would work:
Given a JSON file, going through some program with some custom logic (will probably be written by myself), will generate xcdatamodel file for me to use in…

Johnny
- 1,483
- 3
- 13
- 10
2
votes
2 answers
Can't open Data Model File in Xcode
Using MacOS Sierra(10.12.1 (16B2555)) and Xcode 8.1(8B62). Created a new Project without selecting "Use Core Data". Now when I create a new Data Model, I can't open it in Xcode editor.
Even if I right click, Open As-> doesn't show any option.
I had…

saurabh
- 6,687
- 7
- 42
- 63
2
votes
1 answer
How to change model current Version of xcdatamodeld in "Source"
I'm developing iOS application uses coredata.
I know how to change model current Version of xcdatamodeld in "XCode". But can i change it in program?
if can do it, please teach me.

dosuken123
- 438
- 3
- 7
- 19