0

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?

enter image description here

To add more information,

User* user1 = [NSEntityDescription insertNewObjectForEntityForName:@"User" inManagedObjectContext:mainContext];

does not work because the User entity is not recognised.

4

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.