PilotLee / DingDongHelper

叮咚买菜iOS抢菜插件
GNU General Public License v3.0
23 stars 10 forks source link

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

Open liuyuan1114 opened 2 years ago

liuyuan1114 commented 2 years ago

$ 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: "_OBJCCLASS$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

PilotLee commented 2 years ago

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

liuyuan1114 commented 2 years ago

好的,谢谢大神