'NSManagedObject.h' file not found - theos compile error

1.2k views Asked by At

Hi I'm trying to create a patch for an iOS Game and i'm getting the following error when i try to compile:

In file included from Tweak.xm:6:
/../.../X.h:7:9: fatal error: 'NSManagedObject.h' file not found
#import "NSManagedObject.h"
        ^
6 errors generated.
make[2]: *** [obj/Tweak.xm.41a2083e.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [xxx.all.tweak.variables] Error 2

Thanks in advance

1

There are 1 answers

2
Gabriele Petronella On

NSManagedObject is declared in the CoreData framework, so you have to link it when compiling.

In your makefile you have to put something like

<YOURPATCH>_FRAMEWORKS = CoreData