Code
%hook SpringBoard
-(void)applicationDidFinishLaunching:(id)arg1 { //not a real method its just kinda what i remember it looked like, should be in one of the tutorials you went through
%orig;//tells that the method you hooked to continue running normally (we don't want to break anything)
UIAlertController * alert= //blah blah find uialertcontrollercode online and paste your desired alert,
[self presentViewController:alert animated:YES completion:nil]; //so it shows your alert code
}
%end //close up your hook
Error is
==> Compiling Tweak.xm (arm64)…
Tweak.xm:15:9: error: 'release' is unavailable: not available in automatic reference counting mode
[alert release];
^
/opt/theos/sdks/iPhoneOS9.3.sdk/usr/include/objc/NSObject.h:37:1: note: 'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
Tweak.xm:15:9: error: ARC forbids explicit message send of 'release'
[alert release];
~~~~~ ^