我应该是火星了好几年没更新theos了。
https://github.com/theos/theos/issues/169
添加这两行在Makefile里Tweak_Name=XXXX那行的下面
SUBSTRATE ?= yes
instance_USE_SUBSTRATE = $(SUBSTRATE)
把上面的instance替换成你的TweakName,在上面的这个例子中就是XXXX
然后make SUBSTRATE=no
EDIT:
MSHookFunction hook用的是Trampoline,需要读写__TEXT从而导致在不越狱的情况下破坏代码签名(afaik),我构造了简单的一个MS Wrapper在 https://github.com/Naville/WTFJH/blob/master/Hooks/Misc/
通过Fishhook来部分替代substrate的功能 (Untested)
正常编译: