越狱开发 - 创建调整时出错

发布于 2024-12-23 12:24:00 字数 961 浏览 2 评论 0原文

我正在尝试创建 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心凉怎暖 2024-12-30 12:24:00

“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文