How to fix "Cannot find interface declaration for" NSManagedObject, superclass "?

Can someone help me solve the following error:

Error cannot find interface declaration for 'NSManagedObject', superclass

+8
objective-c iphone
source share
3 answers

Try

#import <CoreData/CoreData.h> 
+15
source share

Did you miss the inclusion statement?

Are you subclassed by NSManagedObject? If so, go here in the Apple documentation and go to the generated Xcode subclasses. They give you instructions for Xcode to generate class files from your data model.

Tip: Core Data is pretty complicated, and you need to get comfortable with iPhone development before you start working with it.

+2
source share

Importing CoreData into your xxx-Bridging-Header.h will make sense.

0
source share

All Articles