我正在嘗試讓OSOS小牛隊工作。我最近購買了iPhone 5s,然後越獄了。現在我正在嘗試讓Theos工作,以便我可以再次開始一些調整。我曾在OSX Lion和IOS 5和6上工作過。我有一個非常簡單的程序,應用程序啓動時應顯示UIAlert。問題是,當我試圖編譯我的代碼運行make命令我得到這個錯誤:Theos for armv7 and arm64
Making all for tweak test...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
Linking tweak test...
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_UIAlertView", referenced from:
objc-class-ref in Tweak.xm.b0410391.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/test.dylib.1cc22e7c.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [test.all.tweak.variables] Error 2
Williams-MacBook-Pro-2:test williamfsmillie$
這裏是我的Tweak.xm代碼:
%hook SBApplicationIcon
-(void)launch{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"TEST" message:@"message...." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
%orig;
}
%end
我的生成文件:
export SDKVERSION=7.0
include theos/makefiles/common.mk
TWEAK_NAME = test
test_FILES = Tweak.xm
ARCHS = armv7 arm64
test_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
謝謝!
Theos是Theodores的縮寫,不是嗎?誰知道!? –