【发布时间】:2014-06-20 07:29:41
【问题描述】:
我设置了 theos 并进行了越狱调整。我在网上看到 rpetrich 的标头只与他的 theos 分叉兼容。
所以我从github克隆了他的theos fork并将他的头文件转储到/include文件夹..
然后我必须将 ldid 和 libsubstrate.dylib 添加到 theos 文件夹中,我按照iPhoneDevWiki 的说明进行了操作
然后我按照this 教程进行了简单的调整
INFO:我正在尝试使用 iOS7 SDK 在 Mavericks 上运行它
问题: 我完全按照教程!但由于某种原因,我收到了这个错误:
Sahils-MacBook-Pro:welcomewagon Sahil$ make
/Users/Sahil/Documents/tweaks/welcomewagon/theos/makefiles/targets/Darwin/iphone.mk:48: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak WelcomeWagon...
make[2]: Nothing to be done for `internal-library-compile'.
这是什么意思>Nothing to be done for 'internal-library-compile'.
我的代码是:
Tweak.xm:
#import <SpringBoard/SpringBoard.h>
%hook SpringBoard
-(void)applicationDidFinishLaunching:(id)application {
%orig;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome"
message:@"Welcome to your iPhone Brandon!"
delegate:nil
cancelButtonTitle:@"Thanks"
otherButtonTitles:nil];
[alert show];
[alert release];
}
%end
生成文件:
include theos/makefiles/common.mk
ARCHS = armv7
TWEAK_NAME = WelcomeWagon
WelcomeWagon_FILES = Tweak.xm
WelcomeWagon_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
【问题讨论】:
标签: ios iphone jailbreak theos