越狱开发 - 创建调整时出错
我正在尝试创建 iphone 调整,但无法编译该调整。它总是会出现这个错误。 可能是什么问题?
TWEAK.M
%hook SBCallAlertDisplay
- (void)updateLCDWithName:(id)name label:(id)label breakPoint:(unsigned)point
{
name = @"dasdasdasdasdasds";
%orig;
}
%end
制作文件
include theos/makefiles/common.mk
export GO_EASY_ON_ME=1
TWEAK_NAME = tete
tete_FILES = Tweak.xm
tete_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
制作
sudo make
Making all for tweak tete...
Linking tweak tete...
Undefined symbols for architecture armv6:
"_MSHookMessageEx", referenced from:
global constructors keyed to Tweak.xm.mmin Tweak.xm.o
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status
make[2]: *** [.theos/obj/tete.dylib] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [tete.all.tweak.variables] Error 2
I'm trying to create an iphone tweak, but I can not compile the tweak. It always comes up with this error.
What could be the problem?
TWEAK.M
%hook SBCallAlertDisplay
- (void)updateLCDWithName:(id)name label:(id)label breakPoint:(unsigned)point
{
name = @"dasdasdasdasdasds";
%orig;
}
%end
MAKE FILE
include theos/makefiles/common.mk
export GO_EASY_ON_ME=1
TWEAK_NAME = tete
tete_FILES = Tweak.xm
tete_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
MAKE
sudo make
Making all for tweak tete...
Linking tweak tete...
Undefined symbols for architecture armv6:
"_MSHookMessageEx", referenced from:
global constructors keyed to Tweak.xm.mmin Tweak.xm.o
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status
make[2]: *** [.theos/obj/tete.dylib] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [tete.all.tweak.variables] Error 2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“substrate.h”定义了它。库是libsubstrate.dylib。但您不必#include .h 或显式链接到库。当你创建调整时,Theos 应该照顾好它。
"substrate.h" defines it. Lib is libsubstrate.dylib. But you don't have to #include the .h or link explicitly with the library. Theos should take care of it when you create a Tweak.