Tweak.xm :
%hook AppDelegate
-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"APPNAME"
message:@" Cheat By Crypto" delegate:self cancelButtonTitle:@"Thanks!" otherButtonTitles:@"For more hacks, Click Here!", nil];
[alert show];
[alert release];
return %orig();
%new
}
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
if(buttonIndex !=alertView.cancelButtonIndex)
{
[[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com]];
}
}
%end
Makefile :
ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
#CFLAGS = -fobjc-arc
#THEOS_PACKAGE_DIR_NAME = debs
include theos/makefiles/common.mk
TWEAK_NAME = fruit
minehack_FILES = Tweak.xm
minehack_FRAMEWORKS = UIKit
minehack_LDFLAGS += -Wl,-segalign,4000
CFLAGS =-w
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
Try that and compile again. For the tweak.xm just change the credits and appname to what you want.