Jump to content

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

    • Gear Defenders v1.1.3 [ +10 Jailed ] Currency Max
      Modded/Hacked App: Gear Defenders By MOBIBRAIN TECHNOLOGY PTE. LTD.
      Bundle ID: com.iogames.gearworld
      App Store Link: https://apps.apple.com/us/app/gear-defenders/id6740892835?uo=4


      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited ADS Tickets
      - Unlimited Draw
      - Unlimited Battle Coins
      - Base HP
      - Gear Speed / Faster Deploy Trop
      - Unlimited Trop / Easy Win
      - ATK / Linked
        • Thanks
        • Like
      • 4 replies
    • Gear Defenders v1.1.3 [ +10 Cheats ] Currency Max
      Modded/Hacked App: Gear Defenders By MOBIBRAIN TECHNOLOGY PTE. LTD.
      Bundle ID: com.iogames.gearworld
      App Store Link: https://apps.apple.com/us/app/gear-defenders/id6740892835?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited ADS Tickets
      - Unlimited Draw
      - Unlimited Battle Coins
      - Base HP
      - Gear Speed / Faster Deploy Trop
      - Unlimited Trop / Easy Win
      - ATK / Linked
        • Winner
        • Like
      • 4 replies
    • Happy Citizens - Mayor Sim v1.4.15 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Happy Citizens - Mayor Sim By MIYA TECH LIMITED
      Bundle ID: com.miyagames.happycitizen.ios
      App Store Link: https://apps.apple.com/ca/app/happy-citizens-mayor-sim/id6745251520?uo=4


      🤩 Hack Features

      - Gems
      - Cash
      - Energy
      - Water
        • Agree
        • Winner
        • Like
      • 15 replies
    • Happy Citizens - Mayor Sim v1.4.15 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Happy Citizens - Mayor Sim By MIYA TECH LIMITED
      Bundle ID: com.miyagames.happycitizen.ios
      App Store Link: https://apps.apple.com/ca/app/happy-citizens-mayor-sim/id6745251520?uo=4

       
      🤩 Hack Features

      - Gems
      - Cash
      - Energy
      - Water
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 24 replies
    • Idle Five - Basketball Manager v1.48.2 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Idle Five - Basketball Manager By Gaminho
      Bundle ID: com.gaminho.idlefivebasketball
      iTunes Store Link: https://apps.apple.com/us/app/idle-five-basketball-manager/id1539155867?uo=4

       

      🤩 Hack Features

      - Currency
      - Resources
      - ViP Active
      - ADS NO
        • Agree
        • Thanks
        • Winner
        • Like
      • 12 replies
    • Idle Five - Basketball Manager v1.48.2 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Idle Five - Basketball Manager By Gaminho
      Bundle ID: com.gaminho.idlefivebasketball
      iTunes Store Link: https://apps.apple.com/us/app/idle-five-basketball-manager/id1539155867?uo=4
       

      🤩 Hack Features

      - Currency
      - Resources
      - ViP Active
      - ADS NO
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 14 replies
    • Domino Dreams™ v1.47.2 [ +10 Cheats ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4



      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]

      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task

      - Ticket Free Max [ Linked With Stars ] LvL Cost

      - Undo Max [ Linked With Stars ] 

      - Gold Card Max [ Linked With Stars ] 

      - Chapter Next [ Play LvL Quit & Win ]

      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]

      - Auto Win LvL [ Play LvL Move Anything ] 

      - Bonus Mod LvL [ ON-OFF ] 

      - Spin Free [ Need One Point only Open Play LvL ]
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 33 replies
    • Domino Dreams™ v1.47.2 [ +10 Jailed ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4


      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]
      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task
      - Ticket Free Max [ Linked With Stars ] LvL Cost
      - Undo Max [ Linked With Stars ] 
      - Gold Card Max [ Linked With Stars ] 
      - Chapter Next [ Play LvL Quit & Win ]
      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]
      - Auto Win LvL [ Play LvL Move Anything ] 
      - Bonus Mod LvL [ ON-OFF ] 
      - Spin Free [ Need One Point only Open Play LvL ]
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 50 replies
    • Merge Clash Tower Defense V14.0 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Merge Clash: Tower Defense By Block Puzzle Games Inc.
      Bundle ID: merge.clash
      iTunes Store Link: https://apps.apple.com/us/app/merge-clash-tower-defense/id1506854108?uo=4


      Hack Features:
      - Gems Max

      - Gold Max

      - DMG Multi

      - ATK Range Multi

      - Critical Multi

      - ATK Tower CD
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 55 replies
    • Merge Clash Tower Defense V14.0 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Merge Clash: Tower Defense By Block Puzzle Games Inc.
      Bundle ID: merge.clash
      iTunes Store Link: https://apps.apple.com/us/app/merge-clash-tower-defense/id1506854108?uo=4


      Hack Features:

      - Gems Max

      - Gold Max

      - DMG Multi

      - ATK Range Multi

      - Critical Multi

      - ATK Tower CD
        • Informative
        • Haha
        • Winner
        • Like
      • 37 replies
    • Goblin Miner: Idle Merger v3.8.0 [ +5 Cheats ] Coins Unlimited
      Modded/Hacked App: Goblin Miner: Idle Merger By ProGamesLab LTD
      Bundle ID: com.goblins.idle.merge.game
      App Store Link: https://apps.apple.com/us/app/goblin-miner-idle-merger/id6751527945?uo=4

      🤩 Hack Features

      - Unlimited Coins / Mine Upgrade
      - Unlimited Goblin Drop / No Limite
      - Goblin LvL Higher / Easy To Skip Time Mine / First Drop Goblin Then Chose Higher LvL
      - Unlimited Magic Dust
      - Ruby Pass
        • Haha
        • Thanks
        • Winner
        • Like
      • 3 replies
    • Goblin Miner: Idle Merger v3.8.0 [ +5 Jailed ] Coins Unlimited
      Modded/Hacked App: Goblin Miner: Idle Merger By ProGamesLab LTD
      Bundle ID: com.goblins.idle.merge.game
      App Store Link: https://apps.apple.com/us/app/goblin-miner-idle-merger/id6751527945?uo=4

      🤩 Hack Features

      - Unlimited Coins / Mine Upgrade
      - Unlimited Goblin Drop / No Limite
      - Goblin LvL Higher / Easy To Skip Time Mine / First Drop Goblin Then Chose Higher LvL
      - Unlimited Magic Dust
      - Ruby Pass
        • Agree
        • Thanks
        • Like
      • 6 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