Questions tagged [xcdatamodel]
113 questions
1
vote
1 answer
Generate JSON file from Xcdatamodel
Is it possible to generate JSON file from xcdatamodel?
Here's how I imagine it would work: Given a xcdatamodel file, going through some program with some custom logic (will probably be written by me), will generate JSON file for me to use in…

TooCool
- 10,598
- 15
- 60
- 85
1
vote
0 answers
swift 2.1 Xcode database : thread1 EXC_BREAKPOINT
I am developing an application that uses Xcode database for the first time. By following an online tutorial I got the idea how to do it step by step, but when I test the app I get runtime exception when it reaches the line which saves the data into…

Nada
- 97
- 1
- 7
1
vote
1 answer
Is xcdatamodel needed?
This is my entity object in my iOS app that uses CoreData.
#import
#import
#import "Price.h"
@interface DataPrice : NSManagedObject
@property (nonatomic) NSInteger id;
@property (nonatomic, retain)…

Sandah Aung
- 6,156
- 15
- 56
- 98
1
vote
1 answer
Auto arrange tables in xcdatamodel
I was arranging my tables in the xcdatamodel using my trackpad, and suddently while I was holding a table it moved it too far away from the other tables, how can I move it back down, it's too far to drag it, is there some sort of auto-arange?

Bogdan
- 402
- 2
- 8
- 18
1
vote
1 answer
Is possible to use several Core Data models inside an app?
We have an app that it's already in production with a Core Data model that we need to replace. There has been a lot of changes in our server side and we want to update the model to reflect those changes and new functionalities.
Instead of performing…

amb
- 4,798
- 6
- 41
- 68
1
vote
0 answers
xcdatamodel not compiling on the device
I have my App.xcdatamodel file included in my project. When compiling for the simulator, the App.mom file is generated and my core data manager finds it and runs. When compiling and running for the device, the App.mom file is not generated.
The…

FishStix
- 4,994
- 9
- 38
- 53
1
vote
0 answers
Xcode 4.2 with iOS SDK 6.0, error compiling .xcdatamodeld file
I copied iOS 6 SDK files from xcode 4.5 (dmg) to my computer with snow leopard with xcode 4.2 using this:
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk…

rraf
- 11
- 1
1
vote
0 answers
Difference in behavior between Xcode and OTA Ad-hoc distribution
I have my app working to my satisfaction both in the simulator and on two devices when debugging through Xcode 4.3.2. I use OTA Ad-hoc distribution to send to my beta testers. After archiving, saving, and uploading my ipa and plist file to my…

John_DigitalDownbeat
- 11
- 2
0
votes
1 answer
Copy existing xcdatamodel into a new project - Can't find model for source store
When copying a xcdatamodel to an existing project, the app hangs with the error:
Unresolved error Error Domain=NSCocoaErrorDomain Code=134130 "The operation couldn’t be completed. (Cocoa error 134130.)" UserInfo=0x1894f60…

loretoparisi
- 15,724
- 11
- 102
- 146
0
votes
0 answers
Xcode 4.2 Versioning with Newsstand: Changing .xcdatamodel causes incompatibility
Environment: Xcode 4.2 & iOS 5+, using Newsstand
Running within Simulation version 5.0.
Scenario:
I added a new version to the existing xcdatamodel which broke the compile:
reason = "The model used to open the store is incompatible…

Frederick C. Lee
- 9,019
- 17
- 64
- 105
0
votes
1 answer
Core Data automatic lightweight migration - switching from unversioned to versioned data model
I am trying to perform a lightweight migration, but I am having a problem because of the way I created my initial datamodel. The initial data model was not versioned, so now the following code:
-(NSManagedObjectModel *)managedObjectModel {
…

SAHM
- 4,078
- 7
- 41
- 77
0
votes
0 answers
Migrating from one Core Data model to another
I have a first app (App1) which has a Core Data data model (model1). I have completely rewritten the app (app2) in a separate Xcode project and it has a new data model (model2).
I am trying to understand how I can migrate the persistent store of…

J.Cosgrove
- 1
- 2
0
votes
2 answers
xcdatamodel Contents Disappears
I've had this happen a few times.
The contents of proj.xcdatamodeld/proj.xcdatamodel/ randomly disappear off my hard drive. However, Xcode will open the model file just fine.
Sometimes all three files disappear (elements, layout, contents). Other…

lorean
- 2,150
- 19
- 25
0
votes
0 answers
Git Incorrectly Storing CoreData xcdatamodel
Found this issue yesterday when needing to restore a versioned CoreData model from git and it didn't work. XCode only saw it as an XML file and would never allow me to change it to a CoreData Model.
It seems that when storing to Git the xcdatamodel…

kittonian
- 1,020
- 10
- 22
0
votes
1 answer
Process to change data model
How to change the .xcdatamodeld file i.e. the data model?
Since the program has already been run and the Persistent Store Coordinator (PSC) contains a url to .sqlite, .sqlite-shm and .sqlite-wal files on disk I think the process is as follows but am…

Chris
- 105
- 8