按照书中的例子hook springboard 重启后不显示UIAlertView

make package install没问题,也安在手机上了,springboard也重启了,就是不显示AlertView,不知道问题出在哪了。。。ios8.4

/MakeFile***/
THEOS_DEVICE_IP = iOSIP
ARCHS = armv7s arm64
TARGET = iphone:latest:8.4
include theos/makefiles/common.mk
TWEAK_NAME = iOSREGreetings
iOSREGreetings_FILES = Tweak.xm
iOSREGreetings_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec “killall -9 SpringBoard”

/Tweak***/
%hook SpringBoard

  • (void)applicationDidFinishLaunching:(id)application
    {
    %orig;
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“title” message:nil delegate:self cancelButtonTitle:@“title2”
    otherButtonTitles:nil];

[alert show];
[alert release];
}
%end

filter是怎么写的

的确是filter中的问题 filter中只有com.apple.

原因已找到:

[iphone/tweak] MobileSubstrate Bundle filter [com.apple.springboard]: com.apple.
springboard

直接复制的pdf中的com.apple.springboard(到com.apple.时正好换行了),粘贴到terminal后直接自动回车换行了,所以后面的springboard没写进filter去

//
多谢snakeninny大神指点