I have a custom Core Data class called User
, but when I tried to import the User+CoreDataClass.h
file in my XCTest, it says that the file is not found, and it does not even show up. I have tried to search but most of the results are for Swift and not Objective-C. Does anyone know how to fix this in Objective-C?
To add more information,
User* user1 = [NSEntityDescription insertNewObjectForEntityForName:@"User" inManagedObjectContext:mainContext];
does not work because the User entity is not recognised.