编译报错:微信Utility类已在头文件中加入,但仍报错:

@interface CUtility : NSObject
+ (id)GetDocPath;
@end

Making all for tweak kefujun…
Preprocessing Tweak.xm…
Compiling Tweak.xm…
Linking tweak kefujun…
Undefined symbols for architecture armv7:
"OBJC_CLASS$CUtility", referenced from:
objc-class-ref in Tweak.xm.a1d09de5.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/kefujun.dylib.ba964c90.unsigned] Error 1
make[1]: *** [internal-library-all
] Error 2
make: *** [kefujun.all.tweak.variables] Error 2
indent preformatted text by 4 spaces

已解决,忘记了动态链接 [%c(CUtility) GetDocPath];

1 个赞