Linked Questions
14 questions linked to/from Xcode is looking for core data entity names with dot; not compiling
357
votes
12
answers
284k
views
Can I safely delete contents of Xcode Derived data folder?
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 ...
30
votes
4
answers
11k
views
Core Data: Could not cast value of type 'MyType_MyType_2' to MyType
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 ...
13
votes
1
answer
5k
views
How to generate NSManagedObject classes in Objective C instead of Swift?
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
...
6
votes
1
answer
3k
views
Duplicate Symbol Error in NSManagedObject Subclass
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 ...
7
votes
3
answers
1k
views
Error when creating NSManaged Subclass in Xcode 8.2 beta
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 ...
4
votes
1
answer
2k
views
Swift - Core Data - codegen - Make the extension conform to a protocol?
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 ...
5
votes
1
answer
1k
views
Correct way to update Objective C project for Xcode 8 Core Data NSManagedObject subclass changes
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 ...
4
votes
2
answers
2k
views
Receiving error <unknown>:0: error: no such file or directory:
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-...
1
vote
4
answers
670
views
NSManagedObject subclasses duplicate declaration
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 ...
2
votes
1
answer
678
views
Creating NSManagedObject subclass leads to linker error duplicate symbols
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
...
1
vote
1
answer
374
views
can not create subclasses of managed objects
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 ...
1
vote
2
answers
550
views
Swift 3 Xcode 8 not able to archive the app due to codegen coredata issue
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 ...
2
votes
2
answers
175
views
Cannot create NSManagedObject subclass
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 ...
0
votes
1
answer
286
views
How to manually trigger generation of NSManagedObject subclasses in Xcode8
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 -> ...