我按照http://brandontreb.com/beginning-jailbroken-ios-development-building-and-deployment
进行了调整。一切似乎都很好,并且软件包安装成功,
但是当我的 iPhone 重新启动时,“helloworld”框没有出现,有没有人知道如何解决这个问题?
我的 xcode 是 4.6 并安装
了 sdk5.1 我的 iPhone 是 iOS6.1.2
我设置了那些
export THEOS=/opt/theos/
export SDKVERSION=5.1
export THEOS_DEVICE_IP=192.168.1.101
这是 Makefile
export ARCHS=armv7
export TARGET=iphone:5.1
include $(THEOS)/makefiles/common.mk
helloworld_FRAMEWORKS = UIKit
TWEAK_NAME = helloworld
helloworld_FILES = Tweak.xm
include $(THEOS)/makefiles/tweak.mk
这是 Tweak.xm
#import <SpringBoard/SpringBoard.h>
%hook SpringBoard
-(void)applicationDidFinishLaunching:(id)application {
%orig;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome"
message:@"Hello world"
delegate:nil
cancelButtonTitle:@"123"
otherButtonTitles:nil];
[alert show];
[alert release];
}
%end