Theos dla armv7 i arm64
Staram się, aby theos pracowali nad OSX Mavericks. Niedawno kupiłem iPhone'a 5s i od tamtej pory go złamałem. Teraz staram się sprawić, by Theos zaczął pracować, aby móc ponownie zacząć pracować nad poprawkami. Pracowałem na OSX Lion i na IOS 5 i 6. Mam bardzo prosty program, który powinien wyświetlać UIAlert podczas uruchamiania aplikacji. Problem polega na tym, że po uruchomieniu polecenia make podczas próby skompilowania mojego kodu otrzymuję ten błąd:
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$
Oto mój kod dla 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
A mój makefile:
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"
Dzięki!