hi guys, can anyone help me solve this problem? i want make alertview and got this error while make package [spoiler] iPhone:/var/mobile root# cd /var/mobile/ijbmc iPhone:/var/mobile/ijbmc root# ls Makefile Tweak.x control ijbmc.plist iPhone:/var/mobile/ijbmc root# make package > Making all for tweak ijbmc… ==> Compiling Tweak.x (arm64)… Tweak.x:32:430: error: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Werror,-Wdeprecated-declarations] static void (*_logos_orig$_ungrouped$AppDelegate$applicationDidBecomeActive$)(_LOGOS_SELF_TYPE_NORMAL AppDelegate* _LOGOS_SELF_CONST, SEL, id); static void _logos_method$_ungrouped$AppDelegate$applicationDidBecomeActive$(_LOGOS_SELF_TYPE_NORMAL AppDelegate* _LOGOS_SELF_CONST, SEL, id); static void _logos_method$_ungrouped$AppDelegate$alertView$clickedButtonAtIndex$(_LOGOS_SELF_TYPE_NORMAL AppDelegate* _LOGOS_SELF_CONST, SEL, UIAlertView *, NSInteger); ^ /var/theos/sdks/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ Tweak.x:14:1: error: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Werror,-Wdeprecated-declarations] UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"IJBMC " ^ /var/theos/sdks/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ Tweak.x:14:38: error: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Werror,-Wdeprecated-declarations] UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"IJBMC " ^ /var/theos/sdks/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ Tweak.x:20:10: error: 'release' is unavailable: not available in automatic reference counting mode [credits release]; ^ /var/theos/sdks/iPhoneOS13.5.sdk/usr/include/objc/NSObject.h:37:1: note: 'release' has been explicitly marked unavailable here - (oneway void)release OBJC_ARC_UNAVAILABLE; ^ Tweak.x:20:10: error: ARC forbids explicit message send of 'release' [credits release]; ~~~~~~~ ^ Tweak.x:25:171: error: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Werror,-Wdeprecated-declarations] static void _logos_method$_ungrouped$AppDelegate$alertView$clickedButtonAtIndex$(_LOGOS_SELF_TYPE_NORMAL AppDelegate* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, UIAlertView * alertView, NSInteger buttonIndex) { ^ /var/theos/sdks/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ Tweak.x:37:493: error: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Werror,-Wdeprecated-declarations] {Class _logos_class$_ungrouped$AppDelegate = objc_getClass("AppDelegate"); { MSHookMessageEx(_logos_class$_ungrouped$AppDelegate, @selector(applicationDidBecomeActive:), (IMP)&_logos_method$_ungrouped$AppDelegate$applicationDidBecomeActive$, (IMP*)&_logos_orig$_ungrouped$AppDelegate$applicationDidBecomeActive$);}{ char _typeEncoding[1024]; unsigned int i = 0; _typeEncoding[i] = 'v'; i += 1; _typeEncoding[i] = '@'; i += 1; _typeEncoding[i] = ':'; i += 1; memcpy(_typeEncoding + i, @encode(UIAlertView *), strlen(@encode(UIAlertView *))); i += strlen(@encode(UIAlertView *)); memcpy(_typeEncoding + i, @encode(NSInteger), strlen(@encode(NSInteger))); i += strlen(@encode(NSInteger)); _typeEncoding[i] = '\0'; class_addMethod(_logos_class$_ungrouped$AppDelegate, @selector(alertView:clickedButtonAtIndex:), (IMP)&_logos_method$_ungrouped$AppDelegate$alertView$clickedButtonAtIndex$, _typeEncoding); }} } ^ /var/theos/sdks/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ Tweak.x:37:524: error: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Werror,-Wdeprecated-declarations] {Class _logos_class$_ungrouped$AppDelegate = objc_getClass("AppDelegate"); { MSHookMessageEx(_logos_class$_ungrouped$AppDelegate, @selector(applicationDidBecomeActive:), (IMP)&_logos_method$_ungrouped$AppDelegate$applicationDidBecomeActive$, (IMP*)&_logos_orig$_ungrouped$AppDelegate$applicationDidBecomeActive$);}{ char _typeEncoding[1024]; unsigned int i = 0; _typeEncoding[i] = 'v'; i += 1; _typeEncoding[i] = '@'; i += 1; _typeEncoding[i] = ':'; i += 1; memcpy(_typeEncoding + i, @encode(UIAlertView *), strlen(@encode(UIAlertView *))); i += strlen(@encode(UIAlertView *)); memcpy(_typeEncoding + i, @encode(NSInteger), strlen(@encode(NSInteger))); i += strlen(@encode(NSInteger)); _typeEncoding[i] = '\0'; class_addMethod(_logos_class$_ungrouped$AppDelegate, @selector(alertView:clickedButtonAtIndex:), (IMP)&_logos_method$_ungrouped$AppDelegate$alertView$clickedButtonAtIndex$, _typeEncoding); }} } ^ /var/theos/sdks/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ Tweak.x:37:562: error: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Werror,-Wdeprecated-declarations] {Class _logos_class$_ungrouped$AppDelegate = objc_getClass("AppDelegate"); { MSHookMessageEx(_logos_class$_ungrouped$AppDelegate, @selector(applicationDidBecomeActive:), (IMP)&_logos_method$_ungrouped$AppDelegate$applicationDidBecomeActive$, (IMP*)&_logos_orig$_ungrouped$AppDelegate$applicationDidBecomeActive$);}{ char _typeEncoding[1024]; unsigned int i = 0; _typeEncoding[i] = 'v'; i += 1; _typeEncoding[i] = '@'; i += 1; _typeEncoding[i] = ':'; i += 1; memcpy(_typeEncoding + i, @encode(UIAlertView *), strlen(@encode(UIAlertView *))); i += strlen(@encode(UIAlertView *)); memcpy(_typeEncoding + i, @encode(NSInteger), strlen(@encode(NSInteger))); i += strlen(@encode(NSInteger)); _typeEncoding[i] = '\0'; class_addMethod(_logos_class$_ungrouped$AppDelegate, @selector(alertView:clickedButtonAtIndex:), (IMP)&_logos_method$_ungrouped$AppDelegate$alertView$clickedButtonAtIndex$, _typeEncoding); }} } ^ /var/theos/sdks/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ 9 errors generated. make[3]: *** [/var/theos/makefiles/instance/rules.mk:266: /var/mobile/ijbmc/.theos/obj/debug/arm64/Tweak.x.b8f263c9.o] Error 1 make[2]: *** [/var/theos/makefiles/instance/library.mk:52: /var/mobile/ijbmc/.theos/obj/debug/arm64/ijbmc.dylib] Error 2 make[1]: *** [/var/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2 make: *** [/var/theos/makefiles/master/rules.mk:119: ijbmc.all.tweak.variables] Error 2 iPhone:/var/mobile/ijbmc root# this my tweak.xm #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <UIKit/UIControl.h> #import <spawn.h> #import <CoreGraphics/CoreGraphics.h> #import <Accounts/Accounts.h> #import <Social/Social.h> #import <AVFoundation/AVFoundation.h> %hook AppDelegate -(void)applicationDidBecomeActive:(id)arg { UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"title here" message:@"test here" delegate:self cancelButtonTitle:@"Close" otherButtonTitles:@"text here", nil]; [credits show]; [credits release]; %orig(); } %new -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { NSString *button = [alertView buttonTitleAtIndex:buttonIndex]; if([button isEqualToString:@"Contact Me"]) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"link here"]]; } } %end [/spoiler]
from iOSGods RSS Feed https://ift.tt/84hUSp9
Subscribe to:
Post Comments (Atom)
-
Yubo Yoti bypass Requirements: Yubo app Jailbroken iPhone Apps Manager Brain Steps: Open Apps Manager Locate Yubo in Apps Manager and open i...
-
Modded/Hacked App: Simply Guitar by JoyTunes by JoyTunes Bundle ID: com.joytunes.SimplyGuitar iTunes Store Link: https://ift.tt/2ANDd7d Mod ...
-
I don't know how this happened, i was trying to install Kinemaster modded version on my iPhone 7 running iOS 14.0.1, maybe it's beca...
-
Hey everyone I am running Ipad 6th generation running ios 14.0 32 gb capacity with 19.1 gb left I used sideloadly yesterday to install an ap...
-
Hello! I am using this for practice using a dummy Snapchat account I've made and created a My Eyes Only tab. Now, if you don't know ...
-
Hello, does anyone know why I cannot use my Apple password or password from apple servers? Sideloadly version 0.16.1 Checking iOS version......
-
As the title says upon installing Last Day on Earth with sideloadly i get this error ERROR: Guru Meditation 6020bc@89:f11511 Call to np_clie...
-
Hello friends, So I have a problem with Sideloadly, I installed it on my (32x bit Windows 7) laptop (SONY) and tried opening it, but when I ...
-
Hello, I am currently running with an iPhone XR on IOS 12.2. I am trying to install ipa files through cydia impactor but keep receiving this...
-
Netflix is now offering users a chance to win a free subscription for 83 years. The company calls it the “immortal” Netflix account. T...
No comments:
Post a Comment