Linked Questions

357 votes
12 answers
284k views

I am running low on disk space and checked through a third party utility that among other things that ~/Library/Developer/Xcode/DerivedData directory is taking about 22GB of disk space. I searched ...
Sam B's user avatar
  • 27.7k
30 votes
4 answers
11k views

I have an Objective-C model class MyType. This class is used in Swift code: NSEntityDescription.insertNewObjectForEntityForName("MyType", inManagedObjectContext: context) as! MyType The as! cast ...
Bastian's user avatar
  • 4,788
13 votes
1 answer
5k views

I have coreData swift class defined as import Foundation import CoreData @objc(Users) public class Users: NSManagedObject { } Name of file is Users+CoreDataClass.swift I need to call this as ...
Muhammad Umar's user avatar
6 votes
1 answer
3k views

I just simply created a demo project with Core Data. I created an entity Userinfo in my data model. Now I created a NSManagedObject subclass of this entity. Xcode autogenerated these 4 classes. Now ...
iPeter's user avatar
  • 1,360
7 votes
3 answers
1k views

I am getting this error that seems to warn me of duplicate files. Am I missing something or Xcode now doesn't require creating nsmanaged subclass to operate on core data. I tried creating a blank ...
Darko's user avatar
  • 615
4 votes
1 answer
2k views

I'm finding the documentation on the new codegen feature in the Core Data Editor in Xcode 8 a bit sparse. This is a "in Objective-C, I would...." kind of question. I'm trying to declare a protocol ...
horseshoe7's user avatar
  • 2,847
5 votes
1 answer
1k views

I took a break from coding for a few months and came back and discovered the changes in CoreData with Xcode8/iOS10/macOS Sierra. I have been trying to get my head around the new NSManagedObject ...
SimonTheDiver's user avatar
4 votes
2 answers
2k views

Whenever I attempt to build I get this error: <unknown>:0: error: no such file or directory: '/Users/trevorjordy/Library/Developer/Xcode/DerivedData/Duelyst_Database-...
Trevor Jordy's user avatar
1 vote
4 answers
670 views

So, when my data model is ready, I tried to generate the subclasses when my data model file is open: Editor -> Create NSManaged Object Subclasses Okay, two files are generated, one is class ...
David Wu's user avatar
  • 105
2 votes
1 answer
678 views

I am trying to create a nsmanagedobject (User) by going to the Editor menu and then selecting Create NSManagedObject Subclass...this generates four files: User+CoreDataClass.h User+CoreDataClass.m ...
PruitIgoe's user avatar
  • 6,396
1 vote
1 answer
374 views

from documentation (What's New In Core Data) Xcode automatic subclass generation Xcode now supports automatic generation of NSManagedObject subclasses in the modeling tool. In the entity ...
Spartacus9's user avatar
1 vote
2 answers
550 views

This is getting disgusting as since 1 hour I am trying to archive the app to upload it to iTunesConnect but its giving error on one of my coredata auto generated files provided below, but I can see ...
AmJa's user avatar
  • 798
2 votes
2 answers
175 views

I am trying to learn CoreData. I created a single entity with only one attribute and created it's NSManagedObject using the Editor menu. But as soon as I try to build the app I am shown a Swift ...
Supratik Majumdar's user avatar
0 votes
1 answer
286 views

I would like to use the old codegen capabilities (before Xcode 8) for core data: Therefor I am setting the Tools Versions at the File Inspector to Xcode 7.3 but no success. Using "Editor -> ...
Ing. Ron's user avatar
  • 2,105