Jump to content

[ERROR] use of undeclared identifier "alertshow"


Go to solution Solved by Vegito,

11 posts in this topic

Recommended Posts

Posted (edited)

Hi guys, I'm having a problem with compiling my tweak with theos, it gives me this error when running make package

 

 

4Hk6Qpm.jpg

 

 

This is the code I'm using:

 

#import <UIKit/UIKit.h>

%hook AppDelegate
-(BOOL) application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *alert= [[UIAlertView alloc] initWithTitle:@"Test" 
                                                message:@"Hack made by DeathScripts for iOSGods.com" 
                                               delegate:nil 
                                      cancelButtonTitle:@"Subscribe to my YouTube channel" 
                                      otherButtonTitles:nil];
[alertshow];
[alertrelease];
%orig;
}
%end

 

And this is my makefile:

 

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
#CFLAGS = -fobjc-arc
#THEOS_PACKAGE_DIR_NAME = debs

include theos/makefiles/common.mk

TWEAK_NAME = Hack
Hack_FILES = Tweak.xm
Hack_FRAMEWORKS = UIKit
Hack_LDFLAGS += -Wl,-segalign,4000

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
	install.exec "killall -9 suleyman.keys"
include $(THEOS_MAKE_PATH)/aggregate.mk

 

 

Any help is greatly appreciated :)

Updated by DeathScripts
  • Solution
Posted (edited)

Hi guys, I'm having a problem with compiling my tweak with theos, it gives me this error when running make package

 

 

4Hk6Qpm.jpg

 

 

This is the code I'm using:

 

 

#import <UIKit/UIKit.h>

%hook AppDelegate
-(BOOL) application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *alert= [[UIAlertView alloc] initWithTitle:@"Test" 
                                                message:@"Hack made by DeathScripts for iOSGods.com" 
                                               delegate:nil 
                                      cancelButtonTitle:@"Subscribe to my YouTube channel" 
                                      otherButtonTitles:nil];
[alert show];
[alert release];
return %orig;
}
%end

changes i made-->

 

 

[alert show];

[alert release];

return %orig;

 

 

Edited by Vegito: Hope this helps

and please do mark this answer as solved if it solves your problem.

Updated by Vegito
Posted

 

Hi guys, I'm having a problem with compiling my tweak with theos, it gives me this error when running make package

 

4Hk6Qpm.jpg

 

This is the code I'm using:

 

 

 

#import <UIKit/UIKit.h>

%hook AppDelegate
-(BOOL) application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *alert= [[UIAlertView alloc] initWithTitle:@"Test" 
                                                message:@"Hack made by DeathScripts for iOSGods.com" 
                                               delegate:nil 
                                      cancelButtonTitle:@"Subscribe to my YouTube channel" 
                                      otherButtonTitles:nil];
[alert show];
[alert release];
return %orig;
}
%end
changes i made-->

 

 

[alert show];

[alert release];

return %orig;

 

 

Edited by Vegito: Hope this helps

and please do mark this answer as solved if it solves your problem.

Now it gives me this error: IyigDtO.jpg
Posted

Now it gives me this error: IyigDtO.jpg

 As i can see you're working on modifying this app called InstaLikes which gives you unlimited login coins. I will help you out.PM me

Posted

The 2nd error is because of return orig;

Posted

No, he is not return anything "control reaches end of non-void function"

 

What return type is 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

    • Goblin Miner: Idle Merger v3.7.1 [ +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
        • Like
      • 0 replies
    • Goblin Miner: Idle Merger v3.7.1 [ +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
        • Thanks
      • 0 replies
    • Gear Truck! v1.0.23 [+3 Jailed Cheats]
      Modded/Hacked App: Gear Truck! By treeplla Inc.
      Bundle ID: com.tree.hybrid.geartank
      App Store Link: https://apps.apple.com/us/app/gear-truck/id6747216965?uo=4



      🤩 Hack Features

      - Never Die
      - High Wheel Speed Gain
      - One Hit Kill
        • Winner
        • Like
      • 5 replies
    • Gear Truck! v1.0.23 [+3 Cheats]
      Modded/Hacked App: Gear Truck! By treeplla Inc.
      Bundle ID: com.tree.hybrid.geartank
      App Store Link: https://apps.apple.com/us/app/gear-truck/id6747216965?uo=4



      🤩 Hack Features

      - Never Die
      - High Wheel Speed Gain
      - One Hit Kill
       
        • Haha
        • Thanks
        • Winner
        • Like
      • 5 replies
    • Soul Huntress: Dungeon Crawler v1.1.4 [+3 Jailed Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4


      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 46 replies
    • Soul Huntress: Dungeon Crawler v1.1.4 [+3 Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
        • Agree
        • Thanks
        • Winner
        • Like
      • 47 replies
    • Cannon Heroes X v1.2.27 [+2 Jailed Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
        • Winner
        • Like
      • 10 replies
    • Cannon Heroes X v1.2.27 [+2 Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
       
        • Winner
        • Like
      • 8 replies
    • Slay Quest v1.3.13 [+3 Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4



      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
       
        • Agree
        • Thanks
        • Winner
        • Like
      • 8 replies
    • Slay Quest v1.3.13 [+3 Jailed Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4

       

      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
        • Like
      • 6 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Jailed Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
        • Agree
        • Thanks
        • Winner
        • Like
      • 23 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
       
        • Agree
        • Winner
        • Like
      • 17 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