DingDongHelper icon indicating copy to clipboard operation
DingDongHelper copied to clipboard

make的时候卡在这一步,请教大神啥原因“ linker command failed with exit code 1 (use -v to see invocation)”

Open liuyuan1114 opened this issue 2 years ago • 2 comments

$ make ==> Notice: Build may be slow as Theos isn’t using all available CPU cores on this computer. Consider upgrading GNU Make: https://theos.dev/docs/parallel-building

Making all for tweak DDMaicaiHelper… ==> Compiling Tweak.x (armv7)… ==> Linking tweak DDMaicaiHelper (armv7)… Undefined symbols for architecture armv7: "OBJC_CLASS$UIApplication", referenced from: objc-class-ref in Tweak.x.d9878e60.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [/Users/source/ddmaicaihelper/.theos/obj/debug/armv7/DDMaicaiHelper.dylib] Error 1 make[2]: *** [/Users/source/ddmaicaihelper/.theos/obj/debug/armv7/DDMaicaiHelper.dylib] Error 2 make[1]: *** [internal-library-all] Error 2 make: *** [DDMaicaiHelper.all.tweak.variables] Error 2

liuyuan1114 avatar Apr 11 '22 19:04 liuyuan1114

需要在 Makefile 文件中,指定要导入的 Framework 拉取最新的代码再试试

PilotLee avatar Apr 11 '22 23:04 PilotLee

好的,谢谢大神

liuyuan1114 avatar Apr 12 '22 03:04 liuyuan1114