Jump to content

 Something great is coming! 🚀

Stay tuned for the big reveal happening here on iOSGods on the 17th of December!

The countdown has finished!

4 posts in this topic

Recommended Posts

Posted (edited)

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]

Updated by Laxus
Posted
4 hours ago, Muhd Firdaus Ariff said:

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]

use UIAlertController as it suggest it

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Pal Go: Tower Defense TD v0.4.41 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 69 replies
    • Pal Go: Tower Defense TD v0.4.41 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 93 replies
    • Margonem Adventures v2.4.3 [+3 Jailed Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4

       

      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
        • Like
      • 23 replies
    • Margonem Adventures v2.4.3 [+3 Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4



      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
        • Agree
        • Winner
        • Like
      • 15 replies
    • Same Room Same Day: Pocket v0.0.38 [+3 Cheats]
      Modded/Hacked App: Same Room Same Day: Pocket By Eduard Malkhasyan
      Bundle ID: com.bugigamesIOS.SameRoomSameDay
      iTunes Store Link: https://apps.apple.com/us/app/same-room-same-day-pocket/id6742232597?uo=4

       

      🤩 Hack Features

      - Full Game Unlocked
      - Never Die
      - Unlimited Ammo
        • Informative
        • Agree
        • Winner
        • Like
      • 11 replies
    • Same Room Same Day: Pocket v0.0.38 [+3 Jailed Cheats]
      Modded/Hacked App: Same Room Same Day: Pocket By Eduard Malkhasyan
      Bundle ID: com.bugigamesIOS.SameRoomSameDay
      iTunes Store Link: https://apps.apple.com/us/app/same-room-same-day-pocket/id6742232597?uo=4

       

      🤩 Hack Features

      - Full Game Unlocked
      - Never Die
      - Unlimited Ammo
        • Thanks
        • Winner
        • Like
      • 17 replies
    • Military Games - Border Wars v14.0 [+3 Cheats]
      Modded/Hacked App: Military Games - Border Wars By Faraz Khan
      Bundle ID: com.zalmayapps.borderwars
      App Store Link: https://apps.apple.com/us/app/military-games-border-wars/id1609310806?uo=4



      🤩 Hack Features

      - Unlimited Gold
      - Auto Win (Enable inside battle)
      - Unlimited Money (Enable inside battle)

       
      • 3 replies
    • Military Games - Border Wars v14.0 [+3 Jailed Cheats]
      Modded/Hacked App: Military Games - Border Wars By Faraz Khan
      Bundle ID: com.zalmayapps.borderwars
      App Store Link: https://apps.apple.com/us/app/military-games-border-wars/id1609310806?uo=4



      🤩 Hack Features

      - Unlimited Gold
      - Auto Win (Enable inside battle)
      - Unlimited Money (Enable inside battle)
        • Like
      • 3 replies
    • Knights of Pen and Paper 3 v1.6.2 [+5 Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

        • Winner
        • Like
      • 8 replies
    • Knights of Pen and Paper 3 v1.6.2 [+5 Jailed Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

        • Informative
        • Agree
        • Thanks
        • Like
      • 13 replies
    • Seaside Escape®: Merge & Story v1.86.0 [+2 Jailed Cheats]
      Modded/Hacked App: Seaside Escape®: Merge & Story By Microfun Limited
      Bundle ID: com.mf.cupcake
      App Store Link: https://apps.apple.com/us/app/seaside-escape-merge-story/id6443755785?uo=4

       

      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 24 replies
    • Seaside Escape®: Merge & Story v1.86.0 [+2 Cheats]
      Modded/Hacked App: Seaside Escape®: Merge & Story By Microfun Limited
      Bundle ID: com.mf.cupcake
      App Store Link: https://apps.apple.com/us/app/seaside-escape-merge-story/id6443755785?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency
       
        • Agree
        • Thanks
        • Winner
        • Like
      • 18 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines