新手请教,创建了一个theos,生成的tweak中怎么没有thoes

哦新版的theos不需要theos目录了,用的是$THEOS 这个bash环境变量

1 个赞

include $(THEOS)/makefiles/common.mk , makefile 里面这种写法吗?

我make了一下,是这种情况,
shjdeMacBook-Air:hookcode shj$ make
Makefile:1: /makefiles/common.mk: No such file or directory
Makefile:6: /tweak.mk: No such file or directory
make: *** No rule to make target `/tweak.mk’. Stop.

THEOS环境变量没设置

是用 export 设置吗?因为今天才看这个,纯新手,问的可能非常低级,麻烦你了

谢谢,环境变量设置了,再次make,又出现了新问题。出现了以下警告,而且编译出来的obj文件里面也没有.dylib。

export THEOS=/opt/theos
rm -rf $THEOS
sudo git clone --recursive https://github.com/theos/theos.git $THEOS

我这样解决了问题