0

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
4

1 回答 1

0

“substrate.h”定义了它。库是 libsubstrate.dylib。但是您不必#include .h 或与库显式链接。当你创建一个 Tweak 时,Theos 应该注意它。

于 2012-01-04T18:27:32.790 回答