Tweak 编译错误 "MSHookMessageEx


#1

新人使用了之前师兄的一个tweak,substrate等相关文件已替换,代码中也添加了<substrate.h>的头文件,make仍旧报错
> Making all for tweak myhooks…

==> Linking tweak myhooks…

Undefined symbols for architecture arm64:

“MSHookMessageEx(objc_class*, objc_selector*, objc_object* ()(objc_object, objc_selector*, …), objc_object* (**)(objc_object*, objc_selector*, …))”, referenced from:

_logosLocalCtor_d8a6d90a(int, char**, char**) in Tweak.xmi.e6198e27.o

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [/Users//myhooks/.theos/obj/debug/myhooks.dylib.47ba6b93.unsigned] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [myhooks.all.tweak.variables] Error 2

makefile代码如下
ADDITIONAL_CCFLAGS = -Qunused-arguments
ARCHS = arm64 armv7
TARGET = iphone:latest:8.0

include /opt/theos/makefiles/common.mk

TWEAK_NAME = myhooks
myhooks_FILES = Tweak.xmi hooks/Utils.m hooks/SocketClass.m hooks/CustomURLProtocol.m hooks/CCCryptHook.m hooks/SSLWriteHook.m hooks/DelegateProxies.m hooks/KeychainHooks.m

myhooks_FRAMEWORKS = UIKit Security Foundation
myhooks_LIBRARIES = sqlite3 substrate

include /opt/theos/makefiles/tweak.mk

after-install::
install.exec “killall -9 SpringBoard”

对了,在项目中全局搜索了,并没有文件使用MSHookMessageEx,当然作为一个菜鸟可能没有意识到这是个中间生成的文件,。。。。
请问大家有解决办法吗~~谢谢