Questions tagged [xcdatamodel]

113 questions
176
votes
4 answers

How to delete an old/unused Data Model Version in Xcode

How can I delete an old Data Model in Xcode? The option is disabled on the menu. (The models I want to delete have not been released to the public - they are interim development models.)
SAHM
  • 4,078
  • 7
  • 41
  • 77
19
votes
1 answer

Mogenerator not found by Xcode

I'm trying to use Mogenerator in my iOS project developed in Xcode 5. I've installed Mogenerator with brew: brew install mogenerator then link: brew link mogenerator After that I have access to this tool from my command line. Next I'm trying to…
Gie
  • 1,907
  • 2
  • 24
  • 49
18
votes
1 answer

What are Fetch Index Elements in the CoreData Model?

In my xcdatamodel two new fields, byTitleIndex and compoundIndex, are showing under Fetch Index Elements. I have not seen this section before in Xcode. What is a Fetch Index Element?
lostAtSeaJoshua
  • 1,695
  • 2
  • 21
  • 34
11
votes
2 answers

Change order of .xcdatamodel entries in .xcdatamodeld file

I have several Core Data model version that I have added to my .xcdatamodeld file, and this last version that I added did not show up at the top of the list as it normally does, it is the 2nd item in the list under the .xcdatamodeld file. I set the…
BP.
  • 10,033
  • 4
  • 34
  • 53
10
votes
5 answers

This NSPersistentStoreCoordinator has no persistent stores (schema mismatch or migration failure). It cannot perform a save operation

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 NSPersistentStoreCoordinator has no persistent stores…
Uzair Dhada
  • 333
  • 2
  • 6
  • 23
9
votes
3 answers

Compatibility problem with .xcdatamodeld between Xcode 4.1 (Lion) and Xcode 3.2.5 (snow leopard)

I have a problem with a Data Model using Core Data. 1/ I've created a data model on xcode 4.1 (on lion) with my entities and their relationships. In the inspector on the right i've checked "Tools version" : Minimum : Xcode 3.2 instead of Xcode…
8
votes
4 answers

Core data Migration Delete data of entity

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 in that entity's table) to be deleted. I gone through…
SandeepAggarwal
  • 1,273
  • 3
  • 14
  • 38
8
votes
5 answers

Xcode Data Model Compiler - MOMC Error: Command momc failed with exit code 1

I am having troubles integrating XMPP on my iOS Project using Xcode 4.4 under Mac Mountain Lion OS X. I followed every step but I got stuck with this problem: Command momc failed with exit code 1 See screenshot: I have deleted all the…
emmandroid
  • 821
  • 1
  • 9
  • 19
6
votes
2 answers

Can I still use xcdatamodel core data model relationships with Restkit?

As I understand it RestKit provides integration with Apple’s Core Data framework, making and populating Core Data associations for you, allowing natural property based traversal of your data model. However, I am unsure if I can still use xcdatamodel…
zardon
  • 2,910
  • 6
  • 37
  • 58
6
votes
1 answer

Access FetchRequest from xcdatamodel in iOS

I'm using NSPersistentContainer to access my core data in iOS10 app and Xcode 8. Similar to Entity, I added a "UserFetchRequest" in my Coredata xcdatamodel. Below is the screen shot. How can I access the "UserFetchRequest" in the code?
Satyam
  • 15,493
  • 31
  • 131
  • 244
6
votes
2 answers

Swift get specific NSManagedObject from entity (core data)

I have an entity in my "ProjName.xcdatamodel" with the name "Questions". In this entity I have 5 attributes ("icehockey","volleyball","soccer",...), each with type transformable. Each row (attribute) will be filled with a NSMutableArray. What I want…
user2099024
  • 1,452
  • 4
  • 16
  • 26
5
votes
1 answer

How to represent Foreign Key relationships in Core Data - Data Model in XCode

Totally new with Core Data, I'm making my data model. I have 33 entities, and few hard relationships between them but lots of Foreign-Key relationships. How can I manage that relationships that are not exactly 1-many or 1-1 or many-many but are…
5
votes
1 answer

How to Turn xcdatamodel file into xcdatamodeld file?

I still have an xcdatamodel file. However, when I created a new project, xcode generate an xcdatamodeld file (with a d). I want to convert my xcdatamodel file into xcdatamodeld file. I know that xcdatamodeld is some form of directory. How would I do…
user4951
  • 32,206
  • 53
  • 172
  • 282
4
votes
1 answer

Does adding a new entity in Core Data require a new model version or migration in 2020

It used to be the case that adding an entity to a model in Core Data required a new version of the model if the App is already in the App Store. See this answer and also this one. However, I believe that Apple has simplified the migration process so…
user1904273
  • 4,562
  • 11
  • 45
  • 96
4
votes
2 answers

Error in xcdatamodel

My xcdatamodel file in Xcode seems to be behaving weirdly. When I build my project for the first time it gives an error "Unable to write VersionInfo.plist for the versioned model at " and "Compilation failed for data model at path…
evanescent
  • 1,373
  • 13
  • 20
1
2 3 4 5 6 7 8