Jailbreak dev - 创建调整错误

时间:2011-12-29 18:51:50

标签: iphone ios jailbreak tweak logos

我正在尝试创建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

1 个答案:

答案 0 :(得分:0)

“substrate.h”定义它。 Lib是libsubstrate.dylib。但您不必#include .h或显式链接库。创建Tweak时,Theos应该处理它。