Makefile问题

Makefile内容
include theos/makefiles/common.mk

TWEAK_NAME = iOSRE
iOSRE_FILES = Tweak.xm
iOSRE_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
install.exec “killall -9 com.aplle.mobilephone”

make指令之后就出现
Makefile:1:theos/makefiles/common.mk:Not a directory
Makefile:7:/tweak.mk:No such file to directory
make:*** No rule to make target ‘/tweak.mk’. Stop

你是在哪个目录下执行的这个命令?

改了路径后,又出现了
“_MSHookMessageEx”, referenced from:
logosLocalInit() in Tweak.xm.ef78290d.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/IOSRE.dylib.ba964c90.unsigned] Error 1
make[1]: *** [internal-library-all
] Error 2
make: *** [IOSRE.all.tweak.variables] Error

libsubstrate.dylib没有替换吧?

怎么替换libsubstrate.dylib

书上写了,看书

好的。。。。

是否可用iosopenDev的libsubstrate.dylib替换?

请问楼主改的什么路径呢, 我也是出现这个错误
Makefile:1:theos/makefiles/common.mk:Not a directory
Makefile:7:/tweak.mk:No such file to directory
make:*** No rule to make target ‘/tweak.mk’. Stop

kefile: Not a directory
wangxin:hello wangxin$ 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.
我也出现了这个问题,同求,但是我的substrate.dylib 已经替换了啊,当我打开了我的makefiles问文件,我的common.mk 和tweak.mk文字地下会出现红色的一排点点,好像是报错的意思,不是很懂 ,我的工程名字是hello,然后我在hello这个文件下make的

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = hello
hello_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
install.exec “killall -9 SpringBoard”
这是我的common.mk文件

wangxin:hello wangxin$ 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.
我也出现了这个问题,同求,但是我的substrate.dylib 已经替换了啊,当我打开了我的makefiles问文件,我的common.mk 和tweak.mk文字地下会出现红色的一排点点,好像是报错的意思,不是很懂 ,我的工程名字是hello,然后我在hello这个文件下make的

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = hello
hello_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
install.exec “killall -9 SpringBoard”
这是我的common.mk文件

我发现我按照书上说的,写东西,但是唯一的不同就是定制文件的时候,您有5个文件, makefile tweak.xm control iosREProject.plist ,these ->/opt/theos 第五个是重要的,但是我的tweak中没有第五个,也就是指向these 的符号链接~请问这是怎么回事?

libsubstrate.dylib 有更换还是有问题,请问谁解决了吗

你肯定theos目录有问题,试着设置下目录,你这样的话 试试 cd theos/makefiles 是否能进入

请问你是在哪个目录下执行的命令
小弟我遇到这个问题

您好 小弟遇到了这个问题 我是在工程文件路径下 执行的
但是错了

include /opt/theos/makefiles/common.mk

Makefile 设置下里面的include 这个路径就可以了,你的路径和默认生成的不一样,检查下就可以了.除了这个原因就看你makefile 这个文件夹有没有东西

那是环境变量没有设置好, 你在命令行输入

export THEOS=/opt/theos

我使用了export THEOS=/opt/theos 感觉是没有起作用的…

nydeMacBook-Pro:iosre danny$ make
==> Error: The vendor/include and/or vendor/lib directories are missing. Please run /opt/theos/bin/update-theos. More information: https://github.com/theos/theos/wiki/Installation.
make: *** [before-all] Error 1请问这个是怎么回事