You declare the method - (void)initPrefs
in Prefs
's interface but you try to use it while hooking into Class
.
You should declare your method in the class that uses it :
@interface Class
- (void)initPrefs
@end
(Alternatively, you can also disable this type of error in your Makefile by adding the line YourTweakName_CFLAGS = -Wno-error
, but I don't encourage such a thing)