Jump to content

Theos Make Errors (Now UIAlertView) [Testing]


Fadexz

18 posts in this topic

Recommended Posts

Getting errors when making my tweak.

zy6O27Y.png

Tweak.xm

#import <substrate.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
%orig (arg2, 5);
}
%end

%hook AppDelegate

- (void)applicationDidBecomeActive:(id)application {
    NSUserDefaults *validate = [NSUserDefaults standardUserDefaults];
    NSString *alreadyRun = @"already_run";
    if ([validate boolForKey:alreadyRun])  
    return;
    [validate setBool:YES forKey:alreadyRun];
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“READ Important
    message:@"Before using this make sure you stick to 1 active promotion per google account at one time for it not to get blocked. Views amount = Cost amount e.g 600 coins for 100 views = 600 views. Watch 1 video to get your 600 views, if it gets block after a day do 100 views instead (normal max). Enjoy your free unlimited Views and Likes!” delegate:nil cancelButtonTitle:@"Thanks AUSSIE G4M3R"
    otherButtonTitles:nil];
    [alert show];
    [alert release];
}
%end

Also if you can help with what I need to add for the #import, i'm not sure which ones I need and don't need so that would be nice.

Link to comment
https://iosgods.com/topic/55628-theos-make-errors-now-uialertview-testing/
Share on other sites

just substrate.h import is fine

and uikit

problem is with this line : 

 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“READ Important”
    message : blahblahblah

what template are you following

10 minutes ago, TheArmQueen said:

just substrate.h import is fine

and uikit

problem is with this line : 


 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“READ Important”
    message : blahblahblah

what template are you following

@Diversityy rewrote that bit of me, IDK.

1 minute ago, TheArmPrincess said:

Someone else like Zarhi or something rewrote that bit of me, IDK.

ZahirSher ?

Is it ok if you dont have a popup in your tweak /

?

17 minutes ago, TheArmPrincess said:

Okay well i'm gonna go very soon.

#import <substrate.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
%orig (arg2, 5);
}
%end
  
%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.
UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"READ Important" 
                                                  message:@"Before using this make sure you stick to 1 active promotion per google account at one time for it not to get blocked. Views amount = Cost amount e.g 600 coins for 100 views = 600 views. Watch 1 video to get your 600 views, if it gets block after a day do 100 views instead (normal max). Enjoy your free unlimited Views and Likes!”
                                                 delegate:self 
										cancelButtonTitle:@"Thanks" 
										otherButtonTitles:@"Visit Us", nil]; 
[igcredits show];
[igcredits release]; 
return %orig();
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
	if([button isEqualToString:@"Visit Us"])
	{
		[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://iosgods.com/"]];                                                                                
	}
}
%end

Copy paste exact same code  into tweak.xm ( i have added your function name , message and title  and stuff in it as well ) 

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Devil May Cry: Peak of Combat v2.11.0 +7 Cheats
      Modded/Hacked App: Devil May Cry: Peak of Combat By YUNCHANG
      Bundle ID: com.nebulajoy.act.dmcpoc
      iTunes Store Link: https://apps.apple.com/us/app/devil-may-cry-peak-of-combat/id6449589065?uo=4

       


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Speed move
      - Unlimited jump
      - Stupid enemies
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 229 replies
    • Summoners War Cheats v8.6.3 +7
      Hacked App: Summoners War By Com2uS Corp.
      iTunes Link: https://itunes.apple.com/us/app/summoners-war/id852912420?mt=8&uo=4&at=1010lce4
      Bundle ID: com.com2us.smon.normal.freefull.apple.kr.ios.universal

      Hack Features:
      - Damage Multiplier 
      - Godmode
      - Monster Count Unlink
      - Max Accuracy
      - No Skill Cooldown
      - First Turn
      - Build buildings without having required level
      - Antiban
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 6,830 replies
    • Medieval Merge v1.82.0 [Currency/SRDebug 99+ Options]
      Modded/Hacked App: Medieval Merge: Epic RPG Games By Pixodust Aplicativos LTDA
      Bundle ID: com.pixodust.games.free.rpg.medieval.merge.puzzle.empire
      iTunes Store Link: https://apps.apple.com/us/app/medieval-merge-epic-rpg-games/id1553126598?uo=4

      Hack Features:
      - SRDebugger 99+ Toggles
      Open IGMM first and enable "Open SRDebug" then open settings in game for the UI to popup  


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 173 replies
    • Brick Out - Shoot the ball v25.0225.01 +5 Jailed Cheats [Currency Hack]
      Modded/Hacked App: Brick Out - Shoot the ball By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.brickoutshoottheball
      iTunes Store Link: https://apps.apple.com/us/app/brick-out-shoot-the-ball/id1489900957?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - No Ads
      - Free Revives


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 96 replies
    • Brick Out - Shoot the ball v25.0225.01 +5 [Currency Hack]
      Modded/Hacked App: Brick Out - Shoot the ball By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.brickoutshoottheball
      iTunes Store Link: https://apps.apple.com/us/app/brick-out-shoot-the-ball/id1489900957?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - No Ads
      - Add 10000 Rubies
      - Free Revives


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 103 replies
    • Cooking Diary Restaurant Game v2.37.0 Jailed Cheats +3
      Modded/Hacked App: Cooking Diary® Restaurant Game by MyTona Pte Ltd
      Bundle ID: com.mytonallc.cookingdiary
      iTunes Store Link: https://apps.apple.com/us/app/cooking-diary-restaurant-game/id1214763610?uo=4&at=1010lce4


      Hack Features:
      - Infinite Currencies (Get some)
      - Freeze Boosters


      iOS Hack Download Link: https://iosgods.com/topic/110310-arm64-cooking-diary-restaurant-game-v1160-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 661 replies
    • Cafeland - World Kitchen v2.42.2 Jailed Cheats +1
      Modded/Hacked App: Cafeland - World Kitchen by Gamegos Internet Teknolojileri Ltd Sti.
      Bundle ID: com.gamegos.mobile.cafeland
      iTunes Store Link: https://apps.apple.com/us/app/cafeland-world-kitchen/id1147665432?uo=4&at=1010lce4


      Hack Features:
      - Freeze Currencies

      iOS Hack Download Link: https://iosgods.com/topic/100703-arm64-cafeland-world-kitchen-v2182-jailed-cheats-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 548 replies
    • Tap Away 3D v156.1.6 +12 Jailed Cheats [Infinite Moves]
      Modded/Hacked App: Tap Away 3D By Popcore GmbH
      Bundle ID: com.jctswbglsm.SwipeAway
      iTunes Store Link: https://apps.apple.com/us/app/tap-away-3d/id1568058543?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - No Ads
      - Infinite Moves
      - Freeze Challenge Moves
      - Disable Timer for Challenge


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/

        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 51 replies
    • Tap Away 3D v156.1.6 +12 [Infinite Moves]
      Modded/Hacked App: Tap Away 3D By Popcore GmbH
      Bundle ID: com.jctswbglsm.SwipeAway
      iTunes Store Link: https://apps.apple.com/us/app/tap-away-3d/id1568058543?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - No Ads
      - Add Coins
      - Add Tokens
      - Make Me VIP
      - Spawn Bomb
      - Spawn Coin Block
      - Spawn Bomb
      - Spawn Coin Block
      - Spawn Special Blocks
      - Unlock All Puzzles
      - Unlock All Skins
      - Unlock All Challenges
      - Infinite Moves
      - Freeze Challenge Moves
      - Disable Timer for Challenge


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/

        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 50 replies
    • Stick War 3 v2025.4.672 +8 OP Jailed Cheats
      Modded/Hacked App: Stick War 3 By 1004319 Alberta Ltd
      Bundle ID: com.maxgames.stickwar3
      iTunes Store Link: https://apps.apple.com/ca/app/stick-war-3/id1548764863?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Anti Cheat Bypassed
      - Infinite Gold
      - Infinite Mana
      - Infinite Team Members
      - No Spawn Unit Cooldown
      - No Spell Cooldown
      - Everything Owned


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 88 replies
    • Stick War 3 v2025.4.672 +8 OP Cheats
      Modded/Hacked App: Stick War 3 By 1004319 Alberta Ltd
      Bundle ID: com.maxgames.stickwar3
      iTunes Store Link: https://apps.apple.com/ca/app/stick-war-3/id1548764863?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Anti Cheat Bypassed
      - Infinite Gold
      - Infinite Mana
      - Infinite Team Members
      - Collect High Gold
      - No Spawn Unit Cooldown
      - No Spell Cooldown
      - Everything Owned


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 71 replies
    • Race Master 3D - Car Racing v3.6.15 +4 [Currency Hack]
      Modded/Hacked App: Race Master 3D - Car Racing By SayGames LTD
      Bundle ID: com.easygames.race
      iTunes Store Link: https://apps.apple.com/us/app/race-master-3d-car-racing/id1579072162?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - No Ads
      - Infinite Currency
      - Infinite Boosters
      - Unlimited Nitro


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 38 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