Okay well I made a simple MS tweak, I'm trying to make an AlertView for my hack, im used to not doing them because I never wanted to.
I am getting no errors when compiling, just as usual but the UIAlertView never popped up when the hack was installed.
Here is my tweak.xm & MakeFile, any solutions?
Tweak.xm:
#include <UIKit/UIKit.h>
%hook AutoRapStyle
-(BOOL)free {
return true;
}
-(BOOL)isFree {
return true;
}
%end
%hook AutoRapAppDelgate
-(void)applicationDidBecomeActive:(id)arg {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"AutoRap Hack"
message:@"Hack made by Chrizk0, Enjoy!"
delegate:nil
cancelButtonTitle:@"Thanks!"
otherButtonTitles:nil];
[alert show];
[alert release];
}
%endMakeFile:
ARCHS = armv7 arm64
TARGET = iphone:clang:8.1
include theos/makefiles/common.mk
TWEAK_NAME = AutoRapHack
AutoRapHack_FILES = Tweak.xm
AutoRapHack_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"