p49页,前面没有monitor tweak,然后重新写了个,RevealUtil.h和RevealUtil.m放到工程目录下,make失败,报 Undefined symbols for architecture armv7,ios sdk是8.1,也已替换过lib了
makefile文件:
#export THEOS_DEVICE_IP = 192.168.1.142
export ARCHS = armv7 armv7s arm64
export TARGET=iPhone:8.1:7.1
include theos/makefiles/common.mk
TWEAK_NAME = InstagramTweak
InstagramTweak_FILES = Tweak.xm
InstagramTweak_FRAMEWORKS = UIKit CFNetwork Foundation
InstagramTweak_PRIVATE_FRAMEWORKS = AppSupport
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec “killall -9 Instagram”
如果把RevealUtil的相关东西注释掉,make可以通过
/*
#import “RevealUtil.h”
*/
%hook AppDelegate
-(BOOL)application:(id)arg1 didFinishLaunchingWithOptions:(id)arg2
{
%orig;
/*
RevealUtil *ru=[RevealUtil alloc] init];
[ru startReveal];
*/
return YES;
}
%end